sync primative handles
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user