vulkan: fix mip maps

This commit is contained in:
niki
2022-08-27 22:20:33 +02:00
parent 18221beb25
commit 748f2676d5
+1 -1
View File
@@ -144,7 +144,7 @@ void Texture::createTextureImageView() {
viewInfo.format = vulkanFormat.internalFormat;
viewInfo.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
viewInfo.subresourceRange.baseMipLevel = 0;
viewInfo.subresourceRange.levelCount = 1;
viewInfo.subresourceRange.levelCount = getMipmapCount();
viewInfo.subresourceRange.baseArrayLayer = 0;
viewInfo.subresourceRange.layerCount = layerCount;
viewInfo.components.r = vulkanFormat.swizzleR;