mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +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:
@@ -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