redo some stuffs

This commit is contained in:
Greg Wells
2025-07-16 19:23:55 -04:00
parent 7e724da698
commit cafe294a17
7 changed files with 12 additions and 31 deletions

View File

@@ -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

View File

@@ -6,6 +6,5 @@
typedef struct gnSubmitInfo {
uint32_t commandBufferCount;
gnCommandBufferHandle* commandBuffers;
// uint32_t queueIndex;
} gnSubmitInfo;
gnReturnCode gnSubmit(gnOutputDevice device, gnSubmitInfo info);

View File

@@ -0,0 +1,5 @@
#pragma once
typedef struct gnQueueSubmitInfo {
} gnQueueSubmitInfo;

View File

@@ -1,22 +0,0 @@
#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,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;

View File

@@ -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;

View File

@@ -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;