giving up on this extension for now

This commit is contained in:
Greg Wells
2025-07-16 13:16:18 -04:00
parent 3474ce4288
commit b84786715d
10 changed files with 41 additions and 7 deletions

View File

@@ -3,13 +3,13 @@
#include <utils/gryphn_error_code.h>
#include "gryphn_handles.h"
typedef enum gnCommandPoolFlags {
GN_NO_FLAGS = 0,
GN_REUSE_COMMAND_BUFFERS = 1
} gnCommandPoolFlags;
typedef enum gnCommandPoolFlagBits {
GN_NO_FLAGS = 0,
GN_REUSE_COMMAND_BUFFERS = 1 << 0
} gnCommandPoolFlagBits;
typedef gnFlags gnCommandPoolFlags;
typedef struct gnCommandPoolInfo {
// uint32_t queueIndex;
gnCommandPoolFlags flags;
} gnCommandPoolInfo;

View File

@@ -26,8 +26,6 @@ GN_HANDLE(gnShaderModule);
GN_HANDLE(gnGraphicsPipeline);
GN_HANDLE(gnCommandPool);
GN_HANDLE(gnCommandBuffer);
GN_HANDLE(gnSemaphore);
GN_HANDLE(gnFence);
GN_HANDLE(gnFramebuffer);
GN_HANDLE(gnBuffer);
GN_HANDLE(gnUniformPool);

View File

@@ -0,0 +1,22 @@
#pragma once
#include "command/command_pool/gryphn_command_pool.h"
#include <gryphn_handles.h>
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);

View File

@@ -2,9 +2,13 @@
#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;

View File

@@ -2,6 +2,7 @@
#include "stdint.h"
#include "utils/gryphn_error_code.h"
#include "gryphn_handles.h"
#include "extensions/synchronization/semaphore/gryphn_semaphore.h"
typedef struct gnPresentSyncInfo {
uint32_t waitCount;

View File

@@ -2,6 +2,8 @@
#include "stdint.h"
#include "core/src/renderpass/gryphn_render_pass_descriptor.h"
#include "core/src/gryphn_handles.h"
#include "extensions/synchronization/semaphore/gryphn_semaphore.h"
#include "extensions/synchronization/fence/gryphn_fence.h"
typedef struct gnSubmitSyncInfo {
uint32_t waitCount;

View File

@@ -4,6 +4,8 @@
#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;

View File

@@ -2,5 +2,6 @@
#include "stdint.h"
#include "utils/gryphn_error_code.h"
#include "core/src/gryphn_handles.h"
#include "semaphore/gryphn_semaphore.h"
gnReturnCode gnPresentationQueueGetImageAsync(gnPresentationQueueHandle presentationQueue, uint64_t timeout, gnSemaphoreHandle semaphore, uint32_t* imageIndex);

View File

@@ -1,6 +1,8 @@
#pragma once
#include "stdint.h"
#include "utils/gryphn_error_code.h"
#include <extensions/synchronization/fence/gryphn_fence.h>
#include <extensions/synchronization/semaphore/gryphn_semaphore.h>
#include "core/src/gryphn_handles.h"
typedef struct gnSubmitSyncInfo gnSubmitSyncInfo;

View File

@@ -3,6 +3,8 @@
#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;