add as/ms disassembly thread group size display

This commit is contained in:
Mario-Cui authored and Jake Turner committed 2024-10-23 08:18:00 +01:00
1 parent e6d0d57f80
commit 33fa37a475
1 file changed
+4 -2
@@ -3105,8 +3105,10 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
DisassemblyAddNewLine();
}
// Show the compute shader thread group size
if(reflection && m_Type == DXBC::ShaderType::Compute)
// Show the compute shader,Amplification shader, mesh shader thread group size
if(reflection &&
((m_Type == DXBC::ShaderType::Compute) || (m_Type == DXBC::ShaderType::Amplification) ||
(m_Type == DXBC::ShaderType::Mesh)))
{
m_Disassembly += StringFormat::Fmt(
"[numthreads(%u, %u, %u)]", reflection->DispatchThreadsDimension[0],