summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2024-05-21 21:17:06 +0300
committergrm <grm@eyesin.space>2024-05-21 21:17:06 +0300
commit1ea8c5cf3022c2548def6fd7dcf02df7848e465b (patch)
treecd8618cfe09d2ee2f55fee634ce1cb571ab80da4 /src/state.h
parent4d13db7bf32a73105507297d2e573a599afd3d9d (diff)
downloadcgame-1ea8c5cf3022c2548def6fd7dcf02df7848e465b.tar.gz
cgame-1ea8c5cf3022c2548def6fd7dcf02df7848e465b.tar.bz2
cgame-1ea8c5cf3022c2548def6fd7dcf02df7848e465b.zip
Dynamic rendering
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h16
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;
}