finish new loader structure for vulkan
This commit is contained in:
24
projects/apis/vulkan/loader/vulkan_command_loader.c
Normal file
24
projects/apis/vulkan/loader/vulkan_command_loader.c
Normal 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,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user