Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.2.X, 6000.3.X, 6000.4.X

Votes

0

Found in

2022.3.0f1

6000.2.0a1

6000.3.0a1

6000.4.0a1

6000.5.0a1

Issue ID

UUM-126860

Regression

No

Shaders read from the buffer unconditionally

-

Steps to reproduce:

  1.  Create a new Unity project
  2.  Copy the attached compute shader to the Assets folder
  3.  Inspect the compiled code for Vulkan, Metal, or OpenGL ES

\\
Actual results: 
The read from _BufferB happens unconditionally, leading to undefined behaviour.

Expected results: 
The read from _BufferB should happen only if the condition (_BufferA[tid] < _BufferBLength) is satisfied.

\\
Reproducible with versions: 
6000.5.0a1, 6000.4.0a1, 6000.3.0a1, 6000.2.0a1, 2022.3.0a1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.