Reorder the D3D12 DebugData Zoo shader work around bad DXC debug data

Put the early return case as the first case in the switch statement
This commit is contained in:
Jake Turner
2025-11-17 07:13:34 +13:00
parent 759a738cd1
commit c864e87fbb
@@ -188,29 +188,29 @@ struct TestChild : TestParent
// TEST_DEBUG_VAR_END
if(testIndex == 0)
{
testResult = intVal;
}
else if(testIndex == 1)
{
testResult = intVal * 2;
}
else if(testIndex == 2)
{
testResult = intVal / 2;
}
else if(testIndex == 3)
{
testResult.x = testStruct.anon.a.x;
testResult.y = testStruct.anon.b.x;
}
else if(testIndex == 4)
{
testResult.x = intVal * 7;
testResult.y = intVal * 5;
SET_DATA(testIndex, testResult);
EARLY_RETURN;
}
else if(testIndex == 1)
{
testResult = intVal;
}
else if(testIndex == 2)
{
testResult = intVal * 2;
}
else if(testIndex == 3)
{
testResult = intVal / 2;
}
else if(testIndex == 4)
{
testResult.x = testStruct.anon.a.x;
testResult.y = testStruct.anon.b.x;
}
else if(testIndex == 5)
{
testResult.x = testChild.i;