move present over to sync extension

This commit is contained in:
Gregory Wells
2025-07-09 20:35:16 -04:00
parent f44b73665b
commit 9ae7689ab8
11 changed files with 64 additions and 8 deletions

View File

@@ -5,6 +5,7 @@
#include "synchronization/semaphore/gryphn_semaphore.h"
#include "synchronization/fence/gryphn_fence.h"
#include "synchronization/commands/gryphn_sync_submit.h"
#include "synchronization/commands/gryphn_sync_present.h"
gnReturnCode checkPresentationQueueGetImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphoreHandle semaphore, uint32_t* imageIndex) {
CHECK_FUNCTION_WITH_RETURN_CODE(presentationQueue->outputDevice->instance, _gnPresentationQueueGetImageAsync, syncFunctions, presentationQueue, timeout, semaphore, imageIndex);
@@ -33,3 +34,7 @@ void checkDestroyFence(gnFenceHandle fence) {
gnReturnCode checkSubmitSync(gnOutputDevice device, gnSubmitSyncInfo info) {
CHECK_FUNCTION_WITH_RETURN_CODE(device->instance, _gnSubmitSync, syncFunctions, device, info);
}
gnReturnCode checkPresentSync(gnOutputDevice device, gnPresentSyncInfo info) {
CHECK_FUNCTION_WITH_RETURN_CODE(device->instance, _gnPresentSync, syncFunctions, device, info);
}

View File

@@ -10,3 +10,4 @@ void checkDestroyFence(gnFenceHandle fence);
// gnReturnCode fdsfsdf(gnOutputDevice device, gnSubmitSyncInfo info);
gnReturnCode checkSubmitSync(gnOutputDevice device, gnSubmitSyncInfo info);
gnReturnCode checkPresentSync(gnOutputDevice device, gnPresentSyncInfo info);