sync primative handles

This commit is contained in:
Greg Wells
2025-06-05 22:19:38 -04:00
parent 4349f76ede
commit d5d339105d
17 changed files with 78 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
#include "gryphn_submit.h"
#include "core/gryphn_platform_functions.h"
gnReturnCode gnSubmit(struct gnOutputDevice_t* device, struct gnSubmitInfo_t info) {
gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info) {
return device->deviceFunctions->_gnSubmit(device, info);
}

View File

@@ -1,19 +1,17 @@
#pragma once
#include "stdint.h"
#include "core/sync/semaphore/gryphn_semaphore.h"
#include "core/sync/fence/gryphn_fence.h"
#include "core/output_device/gryphn_output_device.h"
typedef struct gnSubmitInfo_t {
uint32_t waitCount;
enum gnRenderPassStage_e* waitStages;
struct gnSemaphore_t* waitSemaphores;
gnSemaphoreHandle* waitSemaphores;
uint32_t signalCount;
struct gnSemaphore_t* signalSemaphores;
gnSemaphoreHandle* signalSemaphores;
uint32_t commandBufferCount;
gnCommandBufferHandle* commandBuffers;
uint32_t queueIndex;
struct gnFence_t* fence;
} gnSubmitInfo;
gnReturnCode gnSubmit(struct gnOutputDevice_t* device, struct gnSubmitInfo_t submit);
gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info);