actually get it to work

This commit is contained in:
Greg Wells
2025-06-26 18:04:14 -04:00
parent ab3bd566d2
commit f98dc5fead
23 changed files with 81 additions and 68 deletions

View File

@@ -5,12 +5,12 @@
gnReturnCode gnCreateCommandPool(gnCommandPoolHandle* commandPool, gnOutputDeviceHandle device, gnCommandPoolInfo info) {
*commandPool = malloc(sizeof(struct gnCommandPool_t));
(*commandPool)->commandFunctions = &device->instance->commandFunctions;
(*commandPool)->instance = device->instance;
(*commandPool)->device = device;
return device->deviceFunctions->_gnCreateCommandPool((*commandPool), device, info);
return device->instance->callingLayer->deviceFunctions._gnCreateCommandPool((*commandPool), device, info);
}
void gnDestroyCommandPool(gnCommandPoolHandle commandPool) {
commandPool->device->deviceFunctions->_gnDestroyCommandPool(commandPool);
commandPool->instance->callingLayer->deviceFunctions._gnDestroyCommandPool(commandPool);
}

View File

@@ -2,7 +2,6 @@
#include "stdint.h"
#include <utils/gryphn_error_code.h>
#include "gryphn_handles.h"
#include "loader/src/gryphn_command_functions.h"
typedef struct gnCommandPoolInfo {
uint32_t queueIndex;
@@ -11,8 +10,8 @@ typedef struct gnCommandPoolInfo {
#ifdef GN_REVEAL_IMPL
struct gnCommandPool_t {
struct gnPlatformCommandPool_t* commandPool;
gnCommandFunctions* commandFunctions;
gnDevice device;
gnInstance instance;
};
#endif