actually get it to work
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user