mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user