setup basic command runner
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user