diff options
Diffstat (limited to 'src/vksetup.h')
-rw-r--r-- | src/vksetup.h | 14 |
1 files changed, 9 insertions, 5 deletions
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 <vulkan/vulkan_core.h> -#define SDL_MAIN_HANDLED -#define VK_USE_PLATFORM_XCB_KHR #include <stdarg.h> +#define SDL_MAIN_HANDLED +#define VK_USE_PLATFORM_XCB_KHR #include <SDL2/SDL.h> #include <SDL2/SDL_vulkan.h> @@ -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 }; |