This commit is contained in:
2025-02-26 22:05:06 +01:00
parent 39794a27d9
commit 726bbdf389
8 changed files with 125 additions and 23 deletions

View File

@@ -8,9 +8,15 @@
#define PULSE_WEBGPU_FENCE_H_
#include <webgpu/webgpu.h>
#include <stdatomic.h>
#include <Pulse.h>
typedef struct WebGPUFence
{
atomic_bool signal;
} WebGPUFence;
PulseFence WebGPUCreateFence(PulseDevice device);
void WebGPUDestroyFence(PulseDevice device, PulseFence fence);
bool WebGPUIsFenceReady(PulseDevice device, PulseFence fence);