Files
Gryphn/projects/apis/metal/loader/metal_command_loader.m
2025-06-29 14:40:09 -04:00

25 lines
998 B
Objective-C

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