command buffer basic lifecycle
This commit is contained in:
@@ -20,3 +20,17 @@ gnReturnCode openglCommandPoolAllocateCommandBuffers(gnCommandBufferHandle* comm
|
||||
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
|
||||
void openglResetCommandBuffer(gnCommandBuffer commandBuffer) {
|
||||
// commandBuffer->commandBuffer->
|
||||
// nothing, for now command buffers are implictly reset on begin
|
||||
}
|
||||
gnReturnCode openglBeginCommandBuffer(gnCommandBuffer commandBuffer) {
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
gnReturnCode openglEndCommandBuffer(gnCommandBuffer commandBuffer) {
|
||||
return GN_SUCCESS;
|
||||
}
|
||||
void openglDestroyCommandBuffer(gnCommandBuffer commandBuffer) {
|
||||
commandBuffer->commandPool->commandPool->canBeReallocated[commandBuffer->commandBuffer->index] = GN_TRUE;
|
||||
}
|
||||
|
@@ -5,3 +5,8 @@ typedef struct gnPlatformCommandBuffer_t {
|
||||
int index;
|
||||
} gnPlatformCommandBuffer;
|
||||
gnReturnCode openglCommandPoolAllocateCommandBuffers(gnCommandBufferHandle* commandBuffers, uint32_t count, gnCommandPoolHandle pool);
|
||||
|
||||
void openglResetCommandBuffer(gnCommandBuffer commandBuffer);
|
||||
gnReturnCode openglBeginCommandBuffer(gnCommandBuffer commandBuffer);
|
||||
gnReturnCode openglEndCommandBuffer(gnCommandBuffer commandBuffer);
|
||||
void openglDestroyCommandBuffer(gnCommandBuffer commandBuffer);
|
||||
|
Reference in New Issue
Block a user