X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fvulkan%2Fvkutil.h;fp=src%2Fvulkan%2Fvkutil.h;h=bfe38f508a9713798d757cd769e4e3741e8b5939;hp=775fd2735d1775ef4bc68f90b6d2d41ed46e7631;hb=f6ceb163227d00d7f97df1fc2dfbdd419c56277e;hpb=75b8713addd14a845e2fa8ad9a9d3d4a6a323bec diff --git a/src/vulkan/vkutil.h b/src/vulkan/vkutil.h index 775fd27..bfe38f5 100644 --- a/src/vulkan/vkutil.h +++ b/src/vulkan/vkutil.h @@ -12,7 +12,6 @@ extern VkSwapchainKHR vk_swapchain; extern VkSurfaceKHR vk_surface; extern VkInstance vk_instance; extern int vk_qfamily; -extern VkDescriptorPool vk_dpool; extern VkRenderPass vk_renderpass; struct vku_buffer { @@ -29,37 +28,6 @@ struct vku_descriptor { int size; }; -struct vku_pipeline { -}; - -struct vku_pipeline_info { - /* shader stages */ - VkShaderModule vs; - VkShaderModule fs; - - /* states info */ - - VkPipelineShaderStageCreateInfo inf_shader_stage; - - VkPipelineVertexInputStateCreateInfo inf_vertex_input; - - VkPipelineInputAssemblyStateCreateInfo inf_input_asm; - - VkPipelineTessellationStateCreateInfo inf_tessel; - - VkPipelineViewportStateCreateInfo inf_viewport; - VkPipelineRasterizationStateCreateInfo inf_raster; - VkPipelineMultisampleStateCreateInfo inf_multisample; - VkPipelineDepthStencilStateCreateInfo inf_depth_stencil; - VkPipelineColorBlendStateCreateInfo inf_colorblend; - - VkPipelineDynamicStateCreateInfo inf_dynamic_state; - - VkPipelineLayout layout; - VkRenderPass renderpass; - uint32_t subpass; -}; - /* extensions */ bool vku_have_extension(const char *name); bool vku_have_device_extension(const char *name); @@ -102,6 +70,8 @@ void vku_destroy_descriptor(vku_descriptor *descriptor); bool vku_create_descriptor_pool(vku_descriptor **descriptors, int num_desc, VkDescriptorSet set); -void vku_destroy_descriptor_pool(); + +/* +void vku_destroy_descriptor_pool();*/ #endif // VKUTIL_H_