Fix mip display of textures

This commit is contained in:
baldurk
2015-10-15 12:04:56 +02:00
parent feec902280
commit 64be44bf8b
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -17,7 +17,8 @@ Current Support
* On replay you can step into each vkQueueSubmit call to see the command buffers submitted, and step into them to browse through the commands.
* The pipeline state will be displayed at each command, roughly showing the data contained in each member of the pipeline createinfo struct, as well as dynamic state.
* Simple disassembly/reflection of SPIR-V to determine which descriptors to read for read-only resources and uniform buffers. The uniform buffers will be listed separately and the member variables filled out.
* Simple display of most 2D textures in the texture viewer.
* Simple display of most 2D textures with mips in the texture viewer.
* Threading should be pretty efficient - no heavy locks on common paths (outside of creation/deletion)
Known Issues
========
@@ -39,7 +40,7 @@ On capture:
On replay:
* Only 2D non-array non-integer textures can currently be displayed, and only the first mip.
* Only 2D non-array non-integer textures can currently be displayed.
* Pixel values aren't fetched.
* Auto texture range-fit or histogram display is not implemented.
* Debug overlays aren't implemented.
+1 -1
View File
@@ -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
};
+1 -1
View File
@@ -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
};