get all the commands to work
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user