finish new loader structure for vulkan
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#include "gryphn_command_pool.h"
|
||||
#include "stdlib.h"
|
||||
#include "output_device/gryphn_output_device.h"
|
||||
#include "instance/gryphn_instance.h"
|
||||
|
||||
gnReturnCode gnCreateCommandPool(gnCommandPoolHandle* commandPool, gnOutputDeviceHandle device, gnCommandPoolInfo info) {
|
||||
*commandPool = malloc(sizeof(struct gnCommandPool_t));
|
||||
(*commandPool)->commandFunctions = device->instance->commandFunctions;
|
||||
(*commandPool)->commandFunctions = &device->instance->commandFunctions;
|
||||
|
||||
(*commandPool)->device = device;
|
||||
return device->deviceFunctions->_gnCreateCommandPool((*commandPool), device, info);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#include "stdint.h"
|
||||
#include <utils/gryphn_error_code.h>
|
||||
#include "gryphn_handles.h"
|
||||
#include <gryphn_platform_functions.h>
|
||||
#include "loader/src/gryphn_command_functions.h"
|
||||
|
||||
typedef struct gnCommandPoolInfo {
|
||||
uint32_t queueIndex;
|
||||
@@ -11,8 +11,8 @@ typedef struct gnCommandPoolInfo {
|
||||
#ifdef GN_REVEAL_IMPL
|
||||
struct gnCommandPool_t {
|
||||
struct gnPlatformCommandPool_t* commandPool;
|
||||
struct gnCommandFunctions_t* commandFunctions;
|
||||
struct gnOutputDevice_t* device;
|
||||
gnCommandFunctions* commandFunctions;
|
||||
gnDevice device;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#include "gryphn_command.h"
|
||||
#include "command/command_buffer/gryphn_command_buffer.h"
|
||||
#include "command/command_pool/gryphn_command_pool.h"
|
||||
#include "gryphn_platform_functions.h"
|
||||
|
||||
void gnCommandBeginRenderPass(gnCommandBufferHandle buffer, gnRenderPassInfo passInfo) {
|
||||
buffer->commandPool->commandFunctions->_gnCommandBeginRenderPass(buffer, passInfo);
|
||||
|
Reference in New Issue
Block a user