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.
This commit is contained in:
parent
8f679dbe65
commit
fe79797313
2 changed files with 15 additions and 0 deletions
12
README.md
12
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue