From cafe294a1794f3949f8d1306944ba5b9873c0232 Mon Sep 17 00:00:00 2001 From: Greg Wells Date: Wed, 16 Jul 2025 19:23:55 -0400 Subject: [PATCH] redo some stuffs --- projects/core/src/gryphn_handles.h | 7 ++++++ projects/core/src/submit/gryphn_submit.h | 1 - .../extensions/queues/gryphn_queue_submit.h | 5 +++++ .../queues/gryphn_queued_command_pool.h | 22 ------------------- projects/extensions/queues/queues_functions.h | 4 ---- .../synchronization/fence/gryphn_fence.h | 2 -- .../semaphore/gryphn_semaphore.h | 2 -- 7 files changed, 12 insertions(+), 31 deletions(-) create mode 100644 projects/extensions/queues/gryphn_queue_submit.h delete mode 100644 projects/extensions/queues/gryphn_queued_command_pool.h diff --git a/projects/core/src/gryphn_handles.h b/projects/core/src/gryphn_handles.h index 3d0e4c5..6907892 100644 --- a/projects/core/src/gryphn_handles.h +++ b/projects/core/src/gryphn_handles.h @@ -30,3 +30,10 @@ GN_HANDLE(gnFramebuffer); GN_HANDLE(gnBuffer); GN_HANDLE(gnUniformPool); GN_HANDLE(gnUniform); + +// extension objects +// GN_EXT_SYNCHRONIZATION +GN_HANDLE(gnSemaphore); +GN_HANDLE(gnFence); +// GN_EXT_QUEUES +GN_HANDLE(gnQueue); // NOTE: this is an implementaion specific object diff --git a/projects/core/src/submit/gryphn_submit.h b/projects/core/src/submit/gryphn_submit.h index 1f2419b..5c609e5 100644 --- a/projects/core/src/submit/gryphn_submit.h +++ b/projects/core/src/submit/gryphn_submit.h @@ -6,6 +6,5 @@ typedef struct gnSubmitInfo { uint32_t commandBufferCount; gnCommandBufferHandle* commandBuffers; - // uint32_t queueIndex; } gnSubmitInfo; gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info); diff --git a/projects/extensions/queues/gryphn_queue_submit.h b/projects/extensions/queues/gryphn_queue_submit.h new file mode 100644 index 0000000..7b8f244 --- /dev/null +++ b/projects/extensions/queues/gryphn_queue_submit.h @@ -0,0 +1,5 @@ +#pragma once + +typedef struct gnQueueSubmitInfo { + +} gnQueueSubmitInfo; diff --git a/projects/extensions/queues/gryphn_queued_command_pool.h b/projects/extensions/queues/gryphn_queued_command_pool.h deleted file mode 100644 index 00009c2..0000000 --- a/projects/extensions/queues/gryphn_queued_command_pool.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "command/command_pool/gryphn_command_pool.h" -#include - -GN_HANDLE(gnQueuedCommandPool); - -typedef struct gnQueuedCommandPoolInfo { - gnCommandPoolFlags flags; - uint32_t queueFamilyIndex; -} gnQueuedCommandPoolInfo; - -#ifdef GN_REVEAL_IMPL -struct gnQueuedCommandPool_t { - struct gnPlatformCommandPool_t* commandPool; - gnDevice device; - gnInstance instance; - gnCommandPoolInfo info; -}; -#endif - -gnReturnCode gnCreateQueuedCommandPool(gnQueuedCommandPool* commandPool, gnDeviceHandle device, gnQueuedCommandPoolInfo info); -void gnDestroyQueuedCommandPool(gnQueuedCommandPool commandPool); diff --git a/projects/extensions/queues/queues_functions.h b/projects/extensions/queues/queues_functions.h index 8d312a1..54fe653 100644 --- a/projects/extensions/queues/queues_functions.h +++ b/projects/extensions/queues/queues_functions.h @@ -2,13 +2,9 @@ #include "stdint.h" #include "utils/gryphn_error_code.h" #include "core/src/gryphn_handles.h" -#include "gryphn_queued_command_pool.h" typedef struct gnQueueFamilyProperties gnQueueFamilyProperties; typedef struct gnQueueExtFunctions { gnReturnCode (*_gnGetPhysicalDeviceQueueProperties)(gnPhysicalOutputDeviceHandle device, uint32_t queueCount, gnQueueFamilyProperties* queues); - - gnReturnCode (*_gnCreateQueuedCommandPool)(gnQueuedCommandPool* commandPool, gnDeviceHandle device, gnQueuedCommandPoolInfo info); - void (*_gnDestroyQueuedCommandPool)(gnQueuedCommandPool commandPool); } gnQueueExtFunctions; diff --git a/projects/extensions/synchronization/fence/gryphn_fence.h b/projects/extensions/synchronization/fence/gryphn_fence.h index d2d97d8..fa276ac 100644 --- a/projects/extensions/synchronization/fence/gryphn_fence.h +++ b/projects/extensions/synchronization/fence/gryphn_fence.h @@ -4,8 +4,6 @@ #include "utils/lists/gryphn_array_list.h" #include "gryphn_handles.h" -GN_HANDLE(gnFence); - #ifdef GN_REVEAL_IMPL struct gnFence_t { struct gnPlatformFence_t* fence; diff --git a/projects/extensions/synchronization/semaphore/gryphn_semaphore.h b/projects/extensions/synchronization/semaphore/gryphn_semaphore.h index 8c98b29..881eb12 100644 --- a/projects/extensions/synchronization/semaphore/gryphn_semaphore.h +++ b/projects/extensions/synchronization/semaphore/gryphn_semaphore.h @@ -3,8 +3,6 @@ #include "utils/lists/gryphn_array_list.h" #include "gryphn_handles.h" -GN_HANDLE(gnSemaphore); - #ifdef GN_REVEAL_IMPL struct gnSemaphore_t { struct gnPlatformSemaphore_t* semaphore;