mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-14 19:47:03 +00:00
Fix mip display of textures
This commit is contained in:
+3
-2
@@ -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.
|
||||
|
||||
@@ -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