mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Make D3D12_Groupshared test deterministic
This commit is contained in:
@@ -86,8 +86,10 @@ void main(uint3 gid : SV_GroupThreadID)
|
||||
outval.z = GetGSMValue(gid.x ^ 1);
|
||||
|
||||
// do calculation with our neighbour
|
||||
gsmData[gid.x] = (1.0f + GetGSMValue(gid.x)) * (1.0f + GetGSMValue(gid.x ^ 1));
|
||||
float value = (1.0f + GetGSMValue(gid.x)) * (1.0f + GetGSMValue(gid.x ^ 1));
|
||||
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
gsmData[gid.x] = value;
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
|
||||
// fourth write, our neighbour should be identical to our value
|
||||
|
||||
Reference in New Issue
Block a user