sync API, not impl
This commit is contained in:
@@ -17,3 +17,5 @@
|
||||
#include <core/command/command_buffer/gryphn_command_buffer.h>
|
||||
#include <core/command/commands/gryphn_command.h>
|
||||
#include <core/renderpass/gryphn_render_pass.h>
|
||||
#include <core/sync/semaphore/gryphn_semaphore.h>
|
||||
#include <core/sync/fence/gryphn_fence.h>
|
||||
|
13
src/core/sync/fence/gryphn_fence.h
Normal file
13
src/core/sync/fence/gryphn_fence.h
Normal 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);
|
9
src/core/sync/semaphore/gryphn_semaphore.h
Normal file
9
src/core/sync/semaphore/gryphn_semaphore.h
Normal 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);
|
Reference in New Issue
Block a user