get all the commands to work

This commit is contained in:
Greg Wells
2025-06-29 14:40:09 -04:00
parent 67e5e6e36a
commit 8211876837
37 changed files with 295 additions and 154 deletions

View File

@@ -1,22 +1,24 @@
#include "metal_loader.h"
#include "commands/command_buffer/metal_command_buffer.h"
#include "commands/commands/metal_commands.h"
gnCommandFunctions loadMetalCommandFunctions() {
return (gnCommandFunctions){
._gnCommandPoolAllocateCommandBuffers = NULL,
._gnBeginCommandBuffer = NULL,
._gnResetCommandBuffer = NULL,
._gnEndCommandBuffer = NULL,
._gnCommandPoolAllocateCommandBuffers = allocateMetalCommandBuffers,
._gnBeginCommandBuffer = beginMetalCommandBuffer,
._gnResetCommandBuffer = resetMetalCommandBuffer,
._gnEndCommandBuffer = endMetalCommandBuffer,
._gnCommandBeginRenderPass = NULL,
._gnCommandEndRenderPass = NULL,
._gnCommandBindGraphicsPipeline = NULL,
._gnCommandSetViewport = NULL,
._gnCommandSetScissor = NULL,
._gnCommandBindUniform = NULL,
._gnCommandPushConstant = NULL,
._gnCommandBeginRenderPass = metelBeginRenderPass,
._gnCommandEndRenderPass = endMetalRenderPass,
._gnCommandBindGraphicsPipeline = bindMetalGraphicsPipeline,
._gnCommandSetViewport = setMetalViewport,
._gnCommandSetScissor = setMetalScissor,
._gnCommandBindUniform = metalBindUniform,
._gnCommandPushConstant = metalBindVertexBytes,
._gnCommandBindBuffer = NULL,
._gnCommandDraw = NULL,
._gnCommandDrawIndexed = NULL,
._gnCommandBindBuffer = bindMetalBuffer,
._gnCommandDraw = metalDraw,
._gnCommandDrawIndexed = metalDrawIndexed,
};
}