summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2024-06-01 01:47:10 +0300
committergramanas <anastasis.gramm2@gmail.com>2024-06-01 01:47:10 +0300
commit64617ea2c46d13cd2f72df72fcd426d2fc561bff (patch)
tree570b2c2d0728a94466059c3652bd982ad436062d /src/state.h
parent9acc6b19c6efefb75ee5bc409df3e9346bd07d73 (diff)
downloadcgame-64617ea2c46d13cd2f72df72fcd426d2fc561bff.tar.gz
cgame-64617ea2c46d13cd2f72df72fcd426d2fc561bff.tar.bz2
cgame-64617ea2c46d13cd2f72df72fcd426d2fc561bff.zip
multisample
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h10
1 files changed, 9 insertions, 1 deletions
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;
}