mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
33 lines
998 B
C
33 lines
998 B
C
// Copyright (C) 2024 kanel
|
|
// This file is part of "Pulse"
|
|
// For conditions of distribution and use, see copyright notice in LICENSE
|
|
|
|
#include "PulseDefs.h"
|
|
#include "PulseInternal.h"
|
|
|
|
PULSE_API PulseFence PulseCreateFence(PulseDevice device)
|
|
{
|
|
PULSE_CHECK_HANDLE_RETVAL(device, PULSE_NULL_HANDLE);
|
|
return device->PFN_CreateFence(device);
|
|
}
|
|
|
|
PULSE_API void PulseDestroyFence(PulseDevice device, PulseFence fence)
|
|
{
|
|
PULSE_CHECK_HANDLE(device);
|
|
return device->PFN_DestroyFence(device, fence);
|
|
}
|
|
|
|
PULSE_API bool PulseIsFenceReady(PulseDevice device, PulseFence fence)
|
|
{
|
|
PULSE_CHECK_HANDLE_RETVAL(device, false);
|
|
PULSE_CHECK_HANDLE_RETVAL(fence, false);
|
|
return device->PFN_IsFenceReady(device, fence);
|
|
}
|
|
|
|
PULSE_API bool PulseWaitForFences(PulseDevice device, const PulseFence* fences, uint32_t fences_count, bool wait_for_all)
|
|
{
|
|
PULSE_CHECK_HANDLE_RETVAL(device, false);
|
|
PULSE_CHECK_PTR_RETVAL(fences, false);
|
|
return device->PFN_WaitForFences(device, fences, fences_count, wait_for_all);
|
|
}
|