From af57524fb3d6914ab413023af4b197d2eb8e6894 Mon Sep 17 00:00:00 2001 From: grm Date: Mon, 16 Dec 2024 11:16:24 +0200 Subject: smol progress --- src/state.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 6e78d49..8177c77 100644 --- a/src/state.h +++ b/src/state.h @@ -33,22 +33,6 @@ typedef struct { float dt; } UniformBufferObject; -typedef struct { - VkCommandBuffer vk_command_buffer; - - VkSemaphore image_available_semaphore; - VkSemaphore render_finished_semaphore; - VkFence in_flight_fence; - - vks_buffer uniform_buffer; - void * uniform_buffer_mapped; - - VkDescriptorSet vk_descriptor_set; - - VkDescriptorSet vk_compute_descriptor_set; - vks_buffer shader_storage_buffer; -} frame_data; - typedef struct { float x; float y; @@ -72,7 +56,6 @@ typedef struct { vec4 color; } Particle; - typedef struct state { camera3d camera; @@ -102,7 +85,7 @@ typedef struct state { VkDescriptorSetLayout vk_descriptor_set_layout; vks_pipeline graphics_pipeline; - frame_data frames[MAX_FRAMES_IN_FLIGHT]; + vks_frame_data frames[MAX_FRAMES_IN_FLIGHT]; vks_buffer vertex_buffer; vks_buffer index_buffer; -- cgit v1.2.3