File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
examples_tests/48.ArithmeticUnitTest
include/irr/builtin/glsl/workgroup Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ int main()
295
295
for (uint32_t i=0u ; i<BUFFER_DWORD_COUNT; i++)
296
296
{
297
297
// TODO: use random numbers, but right now I need to see whats going on in order to debug
298
- inputData[i] = i; // randGenerator();
298
+ inputData[i] = randGenerator ();
299
299
}
300
300
}
301
301
auto gpuinputDataBuffer = driver->createFilledDeviceLocalGPUBufferOnDedMem (kBufferSize , inputData);
Original file line number Diff line number Diff line change @@ -228,10 +228,7 @@ uint irr_glsl_workgroupBallotFindMSB();
228
228
if (gl_LocalInvocationIndex< lastInvocation) \
229
229
_IRR_GLSL_SCRATCH_SHARED_DEFINED_[gl_LocalInvocationIndex+ 1u] = firstLevelScan; \
230
230
barrier(); \
231
- if (gl_LocalInvocationIndex< lastInvocation) \
232
- return gl_LocalInvocationIndex!= 0u ? CONV(_IRR_GLSL_SCRATCH_SHARED_DEFINED_[gl_LocalInvocationIndex]): IDENTITY; \
233
- else \
234
- return IDENTITY; \
231
+ return any (bvec2 (gl_LocalInvocationIndex!= 0u,gl_LocalInvocationIndex<= lastInvocation)) ? CONV(_IRR_GLSL_SCRATCH_SHARED_DEFINED_[gl_LocalInvocationIndex]): IDENTITY; \
235
232
} \
236
233
else \
237
234
return CONV(firstLevelScan);
You can’t perform that action at this time.
0 commit comments