summaryrefslogtreecommitdiffstats
path: root/src/vksetup.h
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2024-12-16 11:16:24 +0200
committergrm <grm@eyesin.space>2024-12-16 11:16:24 +0200
commitaf57524fb3d6914ab413023af4b197d2eb8e6894 (patch)
treec6644070d8269a96650f6081dc185560b1a415bc /src/vksetup.h
parenta9ae85a6fee72446d1fe8e6147248adeb39a3649 (diff)
downloadcgame-af57524fb3d6914ab413023af4b197d2eb8e6894.tar.gz
cgame-af57524fb3d6914ab413023af4b197d2eb8e6894.tar.bz2
cgame-af57524fb3d6914ab413023af4b197d2eb8e6894.zip
smol progress
Diffstat (limited to 'src/vksetup.h')
-rw-r--r--src/vksetup.h14
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 };