summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2024-05-24 15:08:47 +0300
committergrm <grm@eyesin.space>2024-05-24 15:08:47 +0300
commitc855556e4ee9b0c614916d1e3ad4722829864798 (patch)
treea848596963ccf6dd997a3edd1284fdf9b8700f0f /src/state.h
parent1ea8c5cf3022c2548def6fd7dcf02df7848e465b (diff)
downloadcgame-c855556e4ee9b0c614916d1e3ad4722829864798.tar.gz
cgame-c855556e4ee9b0c614916d1e3ad4722829864798.tar.bz2
cgame-c855556e4ee9b0c614916d1e3ad4722829864798.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;