finish new loader structure for vulkan

This commit is contained in:
Gregory Wells
2025-06-24 14:43:59 -04:00
parent 4ec3d62146
commit 8cc44c709e
40 changed files with 178 additions and 93 deletions

View File

@@ -0,0 +1,24 @@
#include "vulkan_loader.h"
#include <commands/command_buffer/vulkan_command_buffer.h>
#include <commands/commands/vulkan_commands.h>
gnCommandFunctions loadVulkanCommandFunctions() {
return (gnCommandFunctions){
._gnCommandPoolAllocateCommandBuffers = allocateCommandBuffers,
._gnBeginCommandBuffer = beginCommandBuffer,
._gnResetCommandBuffer = resetCommandBuffer,
._gnEndCommandBuffer = endCommandBuffer,
._gnCommandBeginRenderPass = beginRenderPass,
._gnCommandEndRenderPass = endRenderPass,
._gnCommandBindGraphicsPipeline = bindGraphicsPipeline,
._gnCommandSetViewport = setViewport,
._gnCommandSetScissor = setScissor,
._gnCommandBindUniform = bindUniform,
._gnCommandPushConstant = pushConstant,
._gnCommandBindBuffer = bindBuffer,
._gnCommandDraw = draw,
._gnCommandDrawIndexed = drawIndexed,
};
}