load up until command pool creation

This commit is contained in:
Gregory Wells
2025-06-24 14:04:58 -04:00
parent cdf8dd46d2
commit 4ec3d62146
15 changed files with 66 additions and 34 deletions

View File

@@ -1,26 +1,34 @@
#include "vulkan_loader.h"
#include <presentation_queue/vulkan_presentation_queue.h>
#include <shader_module/vulkan_shader_module.h>
#include <renderpass/vulkan_render_pass_descriptor.h>
#include <pipelines/graphics_pipeline/vulkan_graphics_pipeline.h>
#include <framebuffers/vulkan_framebuffer.h>
#include <textures/vulkan_texture.h>
#include <uniforms/vulkan_uniform_pool.h>
#include <commands/command_pool/vulkan_command_pool.h>
#include <output_device/vulkan_output_devices.h>
gnDeviceFunctions loadVulkanDeviceFunctions() {
return (gnDeviceFunctions){
._gnCreatePresentationQueue = createPresentationQueue,
._gnPresentationQueueGetImage = getPresentQueueImage,
._gnDestroyPresentationQueue = destroyPresentationQueue
._gnDestroyPresentationQueue = destroyPresentationQueue,
// gnReturnCode (*_gnCreateShaderModule)(gnShaderModuleHandle module, gnOutputDeviceHandle device, gnShaderModuleInfo shaderModuleInfo);
// void (*_gnDestroyShaderModule)(gnShaderModuleHandle module);
._gnCreateShaderModule = createShaderModule,
._gnDestroyShaderModule = destroyShaderModule,
// gnReturnCode (*_gnCreateRenderPassDescriptor)(gnRenderPassDescriptorHandle renderPass, gnOutputDeviceHandle device, gnRenderPassDescriptorInfo info);
// void (*_gnDestroyRenderPassDescriptor)(gnRenderPassDescriptorHandle renderPass);
._gnCreateRenderPassDescriptor = createRenderPass,
._gnDestroyRenderPassDescriptor = destroyRenderPass,
// gnReturnCode (*_gnCreateGraphicsPipeline)(gnGraphicsPipelineHandle pipeline, gnOutputDeviceHandle device, gnGraphicsPipelineInfo pipelineInfo);
// void (*_gnDestroyGraphicsPipeline)(gnGraphicsPipelineHandle pipeline);
._gnCreateGraphicsPipeline = createGraphicsPipeline,
._gnDestroyGraphicsPipeline = destroyGraphicsPipeline,
// gnReturnCode (*_gnCreateFramebuffer)(gnFramebuffer framebuffer, gnOutputDeviceHandle device, gnFramebufferInfo framebufferInfo);
// void (*_gnDestroyFramebuffer)(gnFramebuffer framebuffer);
._gnCreateFramebuffer = createFramebuffer,
._gnDestroyFramebuffer = destroyFramebuffer,
// gnReturnCode (*_gnCreateCommandPool)(gnCommandPoolHandle commandPool, gnOutputDeviceHandle device, gnCommandPoolInfo info);
// void (*_gnDestroyCommandPool)(gnCommandPoolHandle commandPool);
._gnCreateCommandPool = createCommandPool,
._gnDestroyCommandPool = destroyCommandPool,
// gnReturnCode (*_gnCreateSemaphore)(gnSemaphoreHandle semaphore, gnOutputDeviceHandle device);
// void (*_gnDestroySemaphore)(gnSemaphoreHandle semaphore);
@@ -30,16 +38,16 @@ gnDeviceFunctions loadVulkanDeviceFunctions() {
// void* (*_gnMapBuffer)(gnBufferHandle buffer);
// void (*_gnDestroyBuffer)(gnBufferHandle buffer);
// gnReturnCode (*_gnCreateUniformPool)(gnUniformPool pool, gnDeviceHandle device);
// gnUniform* (*_gnUniformPoolAllocateUniforms)(gnUniformPool pool, gnUniformAllocationInfo allocInfo);
// void (*_gnDestroyUniformPool)(gnUniformPool pool);
._gnCreateUniformPool = createUniformPool,
._gnUniformPoolAllocateUniforms = allocateUniforms,
._gnDestroyUniformPool = destroyUniformPool,
// void (*_gnUpdateBufferUniform)(gnUniform uniform, gnBufferUniformInfo* bufferInfo);
// void (*_gnUpdateImageUniform)(gnUniform uniform, gnImageUniformInfo* imageInfo);
// gnReturnCode (*_gnCreateTexture)(gnTexture texture, gnDevice device, const gnTextureInfo info);
// void (*_gnTextureData)(gnTextureHandle texture, void* pixelData);
// void (*_gnDestroyTexture)(gnTexture texture);
._gnCreateTexture = createTexture,
._gnTextureData = textureData,
._gnDestroyTexture = destroyTexture,
// gnReturnCode (*_gnCreateFence)(gnFenceHandle fence, gnOutputDeviceHandle device);
// void (*_gnSignalFence)(gnFenceHandle fence);
@@ -50,6 +58,6 @@ gnDeviceFunctions loadVulkanDeviceFunctions() {
// gnReturnCode (*_gnSubmit)(gnOutputDeviceHandle device, gnSubmitInfo submit);
// gnReturnCode (*_gnPresent)(gnOutputDeviceHandle device, gnPresentInfo info);
// void (*_gnWaitForDevice)(gnOutputDeviceHandle device);
._gnWaitForDevice = waitForDevice
};
}