fix depth RTs

submit_rewrite
cosmonaut 2021-01-28 21:48:50 -08:00
parent b854a822d6
commit 7bbb15d8a5
1 changed files with 1 additions and 1 deletions

View File

@ -5818,7 +5818,7 @@ static Refresh_RenderTarget* VULKAN_CreateRenderTarget(
imageViewCreateInfo.image = renderTarget->texture->image; imageViewCreateInfo.image = renderTarget->texture->image;
imageViewCreateInfo.format = renderTarget->texture->format; imageViewCreateInfo.format = renderTarget->texture->format;
imageViewCreateInfo.components = swizzle; imageViewCreateInfo.components = swizzle;
imageViewCreateInfo.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageViewCreateInfo.subresourceRange.aspectMask = aspectFlags;
imageViewCreateInfo.subresourceRange.baseMipLevel = 0; imageViewCreateInfo.subresourceRange.baseMipLevel = 0;
imageViewCreateInfo.subresourceRange.levelCount = 1; imageViewCreateInfo.subresourceRange.levelCount = 1;
imageViewCreateInfo.subresourceRange.baseArrayLayer = 0; imageViewCreateInfo.subresourceRange.baseArrayLayer = 0;