From 64617ea2c46d13cd2f72df72fcd426d2fc561bff Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 1 Jun 2024 01:47:10 +0300 Subject: multisample --- src/state.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 2f02a20..95f636b 100644 --- a/src/state.h +++ b/src/state.h @@ -142,13 +142,19 @@ typedef struct state { VkDeviceMemory vertexBufferMemory; char model_path[1000]; + + VkSampleCountFlagBits msaa_samples; + + VkImage vk_color_image; + VkDeviceMemory vk_color_image_memory; + VkImageView vk_color_image_view; } state_t; static void init_state(state_t *s) { - strcpy(s->model_path, "assets/viking_room.obj"); + strcpy(s->model_path, "assets/monkey.obj"); s->camera.pos[0] = 2.0f; s->camera.pos[1] = 2.0f; s->camera.pos[2] = 2.0f; @@ -198,4 +204,6 @@ init_state(state_t *s) s->prev_frag_result = NULL; s->polygon_mode = VK_POLYGON_MODE_FILL; + + s->msaa_samples = VK_SAMPLE_COUNT_1_BIT; } -- cgit v1.2.3