summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-05-21 21:17:06 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-05-21 21:17:06 +0300
commit2cb9a75dc7118486c33d387871ca98bb30c26678 (patch)
treecd8618cfe09d2ee2f55fee634ce1cb571ab80da4 /src/state.h
parenta6eefcc1d2dd2479b44dbd0bb3732e8568725277 (diff)
downloadcgame-2cb9a75dc7118486c33d387871ca98bb30c26678.tar.gz
cgame-2cb9a75dc7118486c33d387871ca98bb30c26678.tar.bz2
cgame-2cb9a75dc7118486c33d387871ca98bb30c26678.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;
}