diff options
author | grm <grm@eyesin.space> | 2024-05-25 01:36:35 +0300 |
---|---|---|
committer | grm <grm@eyesin.space> | 2024-05-25 01:36:35 +0300 |
commit | 910539a97a5b9c30fc5c2e2b13011002af5606a4 (patch) | |
tree | a9ed5b4d5823c4acf555ab32363d0b252cc6bc53 /src/state.h | |
parent | e3af34c61cc6b59f2aef2f0cd38e2350e99d96a8 (diff) | |
download | cgame-910539a97a5b9c30fc5c2e2b13011002af5606a4.tar.gz cgame-910539a97a5b9c30fc5c2e2b13011002af5606a4.tar.bz2 cgame-910539a97a5b9c30fc5c2e2b13011002af5606a4.zip |
aasaaap!
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h index 2158b5b..b56544a 100644 --- a/src/state.h +++ b/src/state.h @@ -1,6 +1,7 @@ #include <SDL2/SDL.h> #include <vulkan/vulkan.h> #include <shaderc/shaderc.h> +#include <vulkan/vulkan_core.h> #define CGLM_FORCE_DEPTH_ZERO_TO_ONE @@ -109,6 +110,8 @@ typedef struct state { VkImage vk_depth_image; VkDeviceMemory vk_depth_image_memory; VkImageView vk_depth_image_view; + + VkPolygonMode polygon_mode; } state_t ; static void @@ -158,4 +161,6 @@ init_state(state_t * s) s->prev_vert_result = NULL; s->prev_frag_result = NULL; + + s->polygon_mode = VK_POLYGON_MODE_FILL; } |