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
|
|
@ -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