start the process of making sync objects an extension
This commit is contained in:
@@ -81,7 +81,7 @@ gnReturnCode createPresentationQueue(gnPresentationQueueHandle presentationQueue
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
|
||||
gnReturnCode getPresentQueueImage(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphore semaphore, uint32_t* imageIndex) {
|
||||
gnReturnCode getPresentQueueImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphore semaphore, uint32_t* imageIndex) {
|
||||
VkResult result = vkAcquireNextImageKHR(
|
||||
presentationQueue->outputDevice->outputDevice->device,
|
||||
presentationQueue->presentationQueue->swapChain,
|
||||
|
@@ -10,5 +10,5 @@ typedef struct gnPlatformPresentationQueue_t {
|
||||
} gnPlatformPresentationQueue;
|
||||
|
||||
gnReturnCode createPresentationQueue(gnPresentationQueueHandle presentationQueue, const gnDevice device, gnPresentationQueueInfo presentationInfo);
|
||||
gnReturnCode getPresentQueueImage(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphore semaphore, uint32_t* imageIndex);
|
||||
gnReturnCode getPresentQueueImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphore semaphore, uint32_t* imageIndex);
|
||||
void destroyPresentationQueue(gnPresentationQueueHandle queue);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "sync/fence/gryphn_fence.h"
|
||||
#include "synchronization/fence/gryphn_fence.h"
|
||||
|
||||
typedef struct gnPlatformFence_t {
|
||||
VkFence fence;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan.h>
|
||||
#include "sync/semaphore/gryphn_semaphore.h"
|
||||
#include "synchronization/semaphore/gryphn_semaphore.h"
|
||||
|
||||
typedef struct gnPlatformSemaphore_t {
|
||||
VkSemaphore semaphore;
|
||||
|
Reference in New Issue
Block a user