mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-01 01:55:39 +00:00
Fix mip display of textures
This commit is contained in:
@@ -214,7 +214,7 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
|
||||
0.0f, // lod bias
|
||||
1.0f, // max aniso
|
||||
false, VK_COMPARE_OP_NEVER,
|
||||
0.0f, 0.0f, // min/max lod
|
||||
0.0f, 128.0f, // min/max lod
|
||||
VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE,
|
||||
false, // unnormalized
|
||||
};
|
||||
|
||||
@@ -658,7 +658,7 @@ bool VulkanReplay::RenderTexture(TextureDisplay cfg)
|
||||
Unwrap(liveIm), VK_IMAGE_VIEW_TYPE_2D,
|
||||
iminfo.format,
|
||||
{ VK_CHANNEL_SWIZZLE_R, VK_CHANNEL_SWIZZLE_G, VK_CHANNEL_SWIZZLE_B, VK_CHANNEL_SWIZZLE_A },
|
||||
{ VK_IMAGE_ASPECT_COLOR, 0, 1, 0, 1, },
|
||||
{ VK_IMAGE_ASPECT_COLOR, 0, RDCMAX(1, iminfo.mipLevels), 0, 1, },
|
||||
0
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user