Skip to content

Commit b4f30d7

Browse files
committed
Don't do shader register renaming on anything but D3D11
1 parent 4e752c4 commit b4f30d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

renderdocui/Windows/ShaderViewer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ public ShaderViewer(Core core, ShaderReflection shader, ShaderStageType stage, S
480480

481481
var disasm = shader != null ? shader.Disassembly : "";
482482

483-
if (m_Core.Config.ShaderViewer_FriendlyNaming && m_ShaderDetails != null)
483+
if (m_Core.Config.ShaderViewer_FriendlyNaming && m_ShaderDetails != null &&
484+
m_Core.APIProps.pipelineType == GraphicsAPI.D3D11)
484485
{
485486
for (int i = 0; i < m_ShaderDetails.ConstantBlocks.Length; i++)
486487
{

0 commit comments

Comments
 (0)