setup basic command runner

This commit is contained in:
Gregory Wells
2025-08-18 21:42:32 -04:00
parent 10cd374731
commit d1862e3d6f
8 changed files with 52 additions and 34 deletions

View File

@@ -26,9 +26,11 @@ void openglResetCommandBuffer(gnCommandBuffer commandBuffer) {
// nothing, for now command buffers are implictly reset on begin
}
gnReturnCode openglBeginCommandBuffer(gnCommandBuffer commandBuffer) {
commandBuffer->commandBuffer->commmandRunner = openglCreateCommandRunner();
return GN_SUCCESS;
}
gnReturnCode openglEndCommandBuffer(gnCommandBuffer commandBuffer) {
openglDestroyCommandRunner(commandBuffer->commandBuffer->commmandRunner);
return GN_SUCCESS;
}
void openglDestroyCommandBuffer(gnCommandBuffer commandBuffer) {

View File

@@ -1,8 +1,10 @@
#pragma once
#include "core/src/command/command_buffer/gryphn_command_buffer.h"
#include "commands/commands/opengl_command_runner.h"
typedef struct gnPlatformCommandBuffer_t {
int index;
openglCommandRunner commmandRunner;
} gnPlatformCommandBuffer;
gnReturnCode openglCommandPoolAllocateCommandBuffers(gnCommandBufferHandle* commandBuffers, uint32_t count, gnCommandPoolHandle pool);