From af57524fb3d6914ab413023af4b197d2eb8e6894 Mon Sep 17 00:00:00 2001 From: grm Date: Mon, 16 Dec 2024 11:16:24 +0200 Subject: smol progress --- src/vksetup.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/vksetup.h') diff --git a/src/vksetup.h b/src/vksetup.h index 8e14637..daa9148 100644 --- a/src/vksetup.h +++ b/src/vksetup.h @@ -15,9 +15,9 @@ - Using shaderc for compiling glsl - Using vulkan(!) - This is not meant to be a generic werapper around vulkan. It is actively + This is not meant to be a generic wrapper around vulkan. It is actively paired and chaned by the currently in development application, whatever that - might be. Think of it as the vulkan setup configuratior and helper. + might be. Think of it as the vulkan setup configurator and helper. USAGE: ~~~~~~ @@ -34,11 +34,10 @@ */ -#include -#define SDL_MAIN_HANDLED -#define VK_USE_PLATFORM_XCB_KHR #include +#define SDL_MAIN_HANDLED +#define VK_USE_PLATFORM_XCB_KHR #include #include @@ -212,6 +211,10 @@ typedef struct vks_frame_data { void * uniform_buffer_mapped; VkDescriptorSet vk_descriptor_set; + + /* compute stuff */ + /* VkDescriptorSet vk_compute_descriptor_set; */ + /* vks_buffer shader_storage_buffer; */ } vks_frame_data; /* Info structs */ @@ -1101,6 +1104,7 @@ vks_generate_mipmaps(const vks_context vk, const int32_t texHeight, const uint32_t mipLevels) { + (void)imageFormat; VkCommandBuffer command_buffer = _vks_begin_single_time_commands(vk); VkImageMemoryBarrier barrier = { 0 }; -- cgit v1.2.3