From 2cb9a75dc7118486c33d387871ca98bb30c26678 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 21 May 2024 21:17:06 +0300 Subject: Dynamic rendering --- src/state.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 6feb9d1..e5cb784 100644 --- a/src/state.h +++ b/src/state.h @@ -74,24 +74,18 @@ typedef struct state { VkQueue vk_present_queue; VkSwapchainKHR vk_swap_chain; + uint32_t vk_swap_chain_image_count; - // LIST vk_swap_chain_images; // VkImage - VkImage vk_swap_chain_images[1024]; + VkImage vk_swap_chain_images[5]; + VkImageView vk_swap_chain_image_views[5]; // 5 for some reason + VkFormat vk_swap_chain_image_format; VkExtent2D vk_swap_chain_extent; - //LIST vk_swap_chain_image_views; // VkImageView - VkImageView vk_swap_chain_image_views[1000]; - - VkRenderPass vk_render_pass; - VkDescriptorSetLayout vk_descriptor_set_layout; VkPipelineLayout vk_pipeline_layout; VkPipeline vk_graphics_pipeline; - VkFramebuffer vk_swap_chain_framebuffers[1000]; - uint32_t vk_swap_chain_framebuffers_count; - VkCommandPool vk_command_pool; frame_data frames[MAX_FRAMES_IN_FLIGHT]; @@ -153,8 +147,6 @@ init_state(state_t * s) s->vk_swap_chain_image_count = 0; s->vk_physical_device = VK_NULL_HANDLE; - s->vk_swap_chain_framebuffers_count = 0; - s->prev_vert_result = NULL; s->prev_frag_result = NULL; } -- cgit v1.2.3