Fix texture height misprint in texture3d sample

This commit is contained in:
Kirill Gavrilov 2018-04-22 13:35:05 +03:00
parent 452b78ef42
commit f7e8081902

View file

@ -257,7 +257,7 @@ public:
imageCreateInfo.tiling = VK_IMAGE_TILING_OPTIMAL;
imageCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
imageCreateInfo.extent.width = texture.width;
imageCreateInfo.extent.height = texture.width;
imageCreateInfo.extent.height = texture.height;
imageCreateInfo.extent.depth = texture.depth;
// Set initial layout of the image to undefined
imageCreateInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;