summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-05-24 15:08:47 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-05-24 15:08:47 +0300
commit0898bfdf5d8e1c468a2d0aa8a3a7e320c4578dd3 (patch)
treea848596963ccf6dd997a3edd1284fdf9b8700f0f /src/state.h
parent2cb9a75dc7118486c33d387871ca98bb30c26678 (diff)
downloadcgame-0898bfdf5d8e1c468a2d0aa8a3a7e320c4578dd3.tar.gz
cgame-0898bfdf5d8e1c468a2d0aa8a3a7e320c4578dd3.tar.bz2
cgame-0898bfdf5d8e1c468a2d0aa8a3a7e320c4578dd3.zip
Depth buffers
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/state.h b/src/state.h
index e5cb784..2158b5b 100644
--- a/src/state.h
+++ b/src/state.h
@@ -100,14 +100,23 @@ typedef struct state {
shaderc_compilation_result_t prev_vert_result;
shaderc_compilation_result_t prev_frag_result;
+
+ VkImage vk_texture_image;
+ VkDeviceMemory vk_texture_image_memory;
+ VkImageView vk_texture_image_view;
+ VkSampler vk_texture_sampler;
+
+ VkImage vk_depth_image;
+ VkDeviceMemory vk_depth_image_memory;
+ VkImageView vk_depth_image_view;
} state_t ;
static void
init_state(state_t * s)
{
- s->camera.pos[0] = 1.0f;
- s->camera.pos[1] = 1.0f;
- s->camera.pos[2] = 1.0f;
+ s->camera.pos[0] = 2.0f;
+ s->camera.pos[1] = 2.0f;
+ s->camera.pos[2] = 2.0f;
s->camera.front[0] = 0.0f;
s->camera.front[1] = 0.0f;