submit command moved to sync extension
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <core/src/debugger/gryphn_debugger.h>
|
||||
#include "synchronization/semaphore/gryphn_semaphore.h"
|
||||
#include "synchronization/fence/gryphn_fence.h"
|
||||
#include "synchronization/commands/gryphn_sync_submit.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);
|
||||
@@ -28,3 +29,7 @@ void checkResetFence(gnFenceHandle fence) {
|
||||
void checkDestroyFence(gnFenceHandle fence) {
|
||||
CHECK_VOID_FUNCTION(fence->device->instance, _gnDestroyFence, syncFunctions, fence);
|
||||
}
|
||||
|
||||
gnReturnCode checkSubmitSync(gnOutputDevice device, gnSubmitSyncInfo info) {
|
||||
CHECK_FUNCTION_WITH_RETURN_CODE(device->instance, _gnSubmitSync, syncFunctions, device, info);
|
||||
}
|
||||
|
@@ -7,3 +7,6 @@ gnReturnCode checkCreateFence(gnFenceHandle fence, gnOutputDeviceHandle device);
|
||||
void checkWaitForFence(gnFenceHandle fence, uint64_t timeout);
|
||||
void checkResetFence(gnFenceHandle fence);
|
||||
void checkDestroyFence(gnFenceHandle fence);
|
||||
// gnReturnCode fdsfsdf(gnOutputDevice device, gnSubmitSyncInfo info);
|
||||
|
||||
gnReturnCode checkSubmitSync(gnOutputDevice device, gnSubmitSyncInfo info);
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "src/instance_functions.h"
|
||||
#include "src/device_functions.h"
|
||||
#include "src/command_functions.h"
|
||||
#include "extensions/sync_functions.h"
|
||||
|
||||
gnInstanceFunctions loadFunctionLoaderInstanceFunctions() {
|
||||
return (gnInstanceFunctions){
|
||||
@@ -115,5 +116,7 @@ gnSyncExtFunctions loadFunctionLoaderSyncExtFunctions() {
|
||||
._gnWaitForFence = checkWaitForFence,
|
||||
._gnResetFence = checkResetFence,
|
||||
._gnDestroyFence = checkDestroyFence,
|
||||
|
||||
._gnSubmitSync = checkSubmitSync
|
||||
};
|
||||
}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#include "loader/src/gryphn_device_functions.h"
|
||||
|
||||
gnReturnCode checkCreatePresentationQueue(gnPresentationQueueHandle presentationQueue, const gnOutputDeviceHandle device, gnPresentationQueueInfo presentationInfo);
|
||||
gnReturnCode checkPresentationQueueGetImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphoreHandle semaphore, uint32_t* imageIndex);
|
||||
gnReturnCode checkPresentationQueueGetImage(gnPresentationQueueHandle presentationQueue, uint32_t *imageIndex);
|
||||
void checkDestroyPresentationQueue(gnPresentationQueueHandle presentationQueue);
|
||||
|
||||
@@ -20,9 +19,6 @@ void checkDestroyFramebuffer(gnFramebuffer framebuffer);
|
||||
gnReturnCode checkCreateCommandPool(gnCommandPoolHandle commandPool, gnOutputDeviceHandle device, gnCommandPoolInfo info);
|
||||
void checkDestroyCommandPool(gnCommandPoolHandle commandPool);
|
||||
|
||||
gnReturnCode checkCreateSemaphore(gnSemaphoreHandle semaphore, gnOutputDeviceHandle device);
|
||||
void checkDestroySemaphore(gnSemaphoreHandle semaphore);
|
||||
|
||||
gnReturnCode checkCreateBuffer(gnBufferHandle buffer, gnDeviceHandle device, gnBufferInfo info);
|
||||
void checkBufferData(gnBufferHandle buffer, size_t size, void* data);
|
||||
void checkBufferSubData(gnBufferHandle buffer, size_t offset, size_t size, void* data);
|
||||
@@ -41,11 +37,6 @@ gnReturnCode checkCreateTexture(gnTexture texture, gnDevice device, const gnText
|
||||
void checkTextureData(gnTextureHandle texture, void* pixelData);
|
||||
void checkDestroyTexture(gnTexture texture);
|
||||
|
||||
gnReturnCode checkCreateFence(gnFenceHandle fence, gnOutputDeviceHandle device);
|
||||
void checkWaitForFence(gnFenceHandle fence, uint64_t timeout);
|
||||
void checkResetFence(gnFenceHandle fence);
|
||||
void checkDestroyFence(gnFenceHandle fence);
|
||||
|
||||
gnReturnCode checkSubmit(gnOutputDeviceHandle device, gnSubmitInfo submit);
|
||||
gnReturnCode checkPresent(gnOutputDeviceHandle device, gnPresentInfo info);
|
||||
|
||||
|
Reference in New Issue
Block a user