diff options
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 16 |
1 files changed, 4 insertions, 12 deletions
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; } |