mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Ensure no false positives in tests if some values are 0.0
This commit is contained in:
@@ -61,7 +61,7 @@ void main(uint3 tid : SV_GroupThreadID)
|
||||
outval.z = tmp[tid.x ^ 1];
|
||||
|
||||
// do calculation with our neighbour
|
||||
tmp[tid.x] = tmp[tid.x] * tmp[tid.x ^ 1];
|
||||
tmp[tid.x] = (1.0f + tmp[tid.x]) * (1.0f + tmp[tid.x ^ 1]);
|
||||
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ void main(uint3 tid : SV_GroupThreadID)
|
||||
outval.z = tmp[tid.x ^ 1];
|
||||
|
||||
// do calculation with our neighbour
|
||||
tmp[tid.x] = tmp[tid.x] * tmp[tid.x ^ 1];
|
||||
tmp[tid.x] = (1.0f + tmp[tid.x]) * (1.0f + tmp[tid.x ^ 1]);
|
||||
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ shared float tmp[64];
|
||||
|
||||
layout(local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
define GroupMemoryBarrierWithGroupSync() memoryBarrierShared();groupMemoryBarrier();barrier();
|
||||
#define GroupMemoryBarrierWithGroupSync() memoryBarrierShared();groupMemoryBarrier();barrier();
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -74,7 +74,7 @@ void main()
|
||||
outval.z = tmp[tid.x ^ 1];
|
||||
|
||||
// do calculation with our neighbour
|
||||
tmp[tid.x] = tmp[tid.x] * tmp[tid.x ^ 1];
|
||||
tmp[tid.x] = (1.0f + tmp[tid.x]) * (1.0f + tmp[tid.x ^ 1]);
|
||||
|
||||
GroupMemoryBarrierWithGroupSync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user