From 27cfb727c08a4fd2aceb541d24d590c22c3653d3 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 10 Jul 2024 05:18:25 +0100 Subject: [PATCH] Set the correct type for DXIL Compute Shader Input signature reflection Previously was showing "threadId", "threadIdInGroup", "groupId" as float3 instead of uint3 --- renderdoc/driver/shaders/dxil/dxil_reflect.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/driver/shaders/dxil/dxil_reflect.cpp b/renderdoc/driver/shaders/dxil/dxil_reflect.cpp index fbe6c64c3..581d0e94f 100644 --- a/renderdoc/driver/shaders/dxil/dxil_reflect.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_reflect.cpp @@ -584,6 +584,7 @@ void Program::FetchComputeProperties(DXBC::Reflection *reflection) param.compCount = 3; param.regChannelMask = param.channelUsedMask = 0x7; param.semanticIdxName = param.semanticName = "threadIdInGroup"; + param.varType = VarType::UInt; reflection->InputSig.push_back(param); } else if(f.name.beginsWith("dx.op.threadId")) @@ -593,6 +594,7 @@ void Program::FetchComputeProperties(DXBC::Reflection *reflection) param.compCount = 3; param.regChannelMask = param.channelUsedMask = 0x7; param.semanticIdxName = param.semanticName = "threadId"; + param.varType = VarType::UInt; reflection->InputSig.push_back(param); } else if(f.name.beginsWith("dx.op.groupId")) @@ -602,6 +604,7 @@ void Program::FetchComputeProperties(DXBC::Reflection *reflection) param.compCount = 3; param.regChannelMask = param.channelUsedMask = 0x7; param.semanticIdxName = param.semanticName = "groupID"; + param.varType = VarType::UInt; reflection->InputSig.push_back(param); } else if(f.name.beginsWith("dx.op.flattenedThreadIdInGroup")) @@ -611,6 +614,7 @@ void Program::FetchComputeProperties(DXBC::Reflection *reflection) param.compCount = 1; param.regChannelMask = param.channelUsedMask = 0x1; param.semanticIdxName = param.semanticName = "flattenedThreadIdInGroup"; + param.varType = VarType::UInt; reflection->InputSig.push_back(param); }