summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2024-06-01 01:47:10 +0300
committergrm <grm@eyesin.space>2024-06-01 01:47:10 +0300
commite5e6be1bd6edc2c03c97a5622ad0eeea81f8d6c6 (patch)
tree570b2c2d0728a94466059c3652bd982ad436062d /src/state.h
parent407a038b19abda6ab781b32a4895de56d9edb8df (diff)
downloadcgame-e5e6be1bd6edc2c03c97a5622ad0eeea81f8d6c6.tar.gz
cgame-e5e6be1bd6edc2c03c97a5622ad0eeea81f8d6c6.tar.bz2
cgame-e5e6be1bd6edc2c03c97a5622ad0eeea81f8d6c6.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;
}