mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Add debug option to disable use of buffer device address
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
|
||||
RDOC_DEBUG_CONFIG(rdcstr, Vulkan_Debug_PSDebugDumpDirPath, "",
|
||||
"Path to dump before and after pixel shader input SPIR-V files.");
|
||||
RDOC_DEBUG_CONFIG(bool, Vulkan_Debug_DisableBufferDeviceAddress, false,
|
||||
"Disable use of buffer device address for PS Input fetch.");
|
||||
|
||||
class VulkanAPIWrapper : public rdcspv::DebugAPIWrapper
|
||||
{
|
||||
@@ -1163,6 +1165,9 @@ ShaderDebugTrace *VulkanReplay::DebugPixel(uint32_t eventId, uint32_t x, uint32_
|
||||
storageMode = EXT_bda;
|
||||
}
|
||||
|
||||
if(Vulkan_Debug_DisableBufferDeviceAddress)
|
||||
storageMode = Binding;
|
||||
|
||||
rdcarray<uint32_t> fragspv = shader.spirv.GetSPIRV();
|
||||
|
||||
if(!Vulkan_Debug_PSDebugDumpDirPath.empty())
|
||||
|
||||
Reference in New Issue
Block a user