From fe7979731340a614aab727d72dae8b3e25c7575f Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Mon, 1 Dec 2025 11:13:49 -0500 Subject: [PATCH] It was a single line that didn't set the image to 2D. Because the struct is default initialized to 0, this options being 0 means it's a 1D not 2D. --- README.md | 12 ++++++++++++ vk_initializers.cpp | 3 +++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 12d3236..950b37b 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,16 @@ Currently running list of notes I need to remember for the README later: + +## Windows + +* Currently can't get validation layers to work * Running vulkaninfoSDK.exe gives you information about the GPU but no libraries. + +## Linux + +* Need the vulkan-validationlayers +* Might also need vulkan-utility-libraries-dev +* vulkaninfo +* export VK_LAYER_PATH=/usr/share/vulkan/explicit_layer.d + diff --git a/vk_initializers.cpp b/vk_initializers.cpp index 8c30ace..2c0d48c 100644 --- a/vk_initializers.cpp +++ b/vk_initializers.cpp @@ -113,6 +113,9 @@ VkImageCreateInfo vkinit::image_create_info(VkFormat format, VkImageUsageFlags u { VkImageCreateInfo info{}; info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; + info.pNext = nullptr; + + info.imageType = VK_IMAGE_TYPE_2D; info.format = format; info.extent = extent;