sync API, not impl

This commit is contained in:
Greg Wells
2025-05-30 10:17:59 -04:00
parent 733738bcda
commit 7ffae404bb
3 changed files with 24 additions and 0 deletions

View File

@@ -17,3 +17,5 @@
#include <core/command/command_buffer/gryphn_command_buffer.h> #include <core/command/command_buffer/gryphn_command_buffer.h>
#include <core/command/commands/gryphn_command.h> #include <core/command/commands/gryphn_command.h>
#include <core/renderpass/gryphn_render_pass.h> #include <core/renderpass/gryphn_render_pass.h>
#include <core/sync/semaphore/gryphn_semaphore.h>
#include <core/sync/fence/gryphn_fence.h>

View File

@@ -0,0 +1,13 @@
#pragma once
#include "core/output_device/gryphn_output_device.h"
typedef struct gnFence_t {
struct gnPlatformFence_t* fence;
} gnFence;
gnReturnCode gnCreateFence(struct gnFence_t* fence, struct gnOutputDevice_t* device);
void gnSignalFence(struct gnFence_t* fence);
void gnWaitForFence(struct gnFence_t* fence, uint64_t timeout);
void gnResetFence(struct gnFence_t* fence);
void gnDestroyFence(struct gnFence_t* fence);

View File

@@ -0,0 +1,9 @@
#pragma once
#include "core/output_device/gryphn_output_device.h"
typedef struct gnSemaphore_t {
struct gnPlatformSemaphore_t* semaphore;
} gnSemaphore;
gnReturnCode gnCreateSemaphore(struct gnSemaphore_t* semaphore, struct gnOutputDevice_t* device);
void gnDestroySemaphore(struct gnSemaphore_t* semaphore);