mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-21 11:31:13 +00:00
Extend D3D12_Shader_Debug_Zoo GSM test
Include a large groupshared variable (2D Array) Call GroupMemoryBarrierWithGroupSync() groupshared int gsmInt2DArray[2][1024];
This commit is contained in:
1 parent
d3179a9886
commit
a81380d800
1 file changed
+5
@@ -1116,6 +1116,7 @@ struct TestStruct
|
||||
groupshared int gsmInt;
|
||||
groupshared TestStruct gsmStruct[8];
|
||||
groupshared int gsmIntArray[128];
|
||||
groupshared int gsmInt2DArray[2][1024];
|
||||
|
||||
[numthreads(1,1,1)]
|
||||
void main(int3 inTestIndex : SV_GroupID)
|
||||
@@ -1144,14 +1145,18 @@ void main(int3 inTestIndex : SV_GroupID)
|
||||
gsmStruct[gsmInt*4].a = inTestIndex;
|
||||
int idx = 128 - gsmInt - 1;
|
||||
gsmIntArray[idx] = testIndex;
|
||||
gsmInt2DArray[ZERO][idx] = testIndex;
|
||||
gsmInt2DArray[ONE][idx] = testIndex;
|
||||
testResult.x = gsmIntArray[idx + ZERO];
|
||||
testResult.y = testIndex;
|
||||
testResult.z = gsmStruct[gsmInt * 4].a.y;
|
||||
testResult.w = gsmInt2DArray[ZERO][idx] + gsmInt2DArray[ONE][idx];
|
||||
}
|
||||
else
|
||||
{
|
||||
testResult.x = inTestIndex.x;
|
||||
}
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
bufOut[gsmInt] = testResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user