Set the correct type for DXIL Compute Shader Input signature reflection

Previously was showing "threadId", "threadIdInGroup", "groupId" as float3 instead of uint3
This commit is contained in:
Jake Turner
2024-07-10 13:34:30 +01:00
parent 51612fdc94
commit 27cfb727c0
@@ -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);
}