mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user