diff options
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; } |