Search Issue Tracker

Fixed in Unity 2017.2

Votes

0

Found in

5.6.0f3

Issue ID

919044

Regression

No

Big (>1KB) ComputeBuffers created with IndirectArguments flags fails to be written completely in a Compute Shader

Shaders

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 2No workaround

Steps to reproduce:

1) Download attached project and open in Unity
2) Open scene 'Scene' and press play
3) After ~3 seconds stop Play mode
4) Open Console window and you will see a message which says that Items was not written properly
5) Open 'TestCompute' script and edit line 24 (remove or comment the ComputeBufferType.IndirectArguments flag in the constructor)
6) Press Play
7) Check Console window and you will see that items was written properly 'Shader dimension returned: structs 1024 - stride 20'

Expected result: ComputeBuffers created with IndirectArguments flags should be written correctly in a Compute Shader (check attached image 'expected.png')
Actual result: ComputeBuffers created with IndirectArguments flags fails to be written in a Compute Shader (check attached image 'actual.png')

Reproduced with:
5.5.1f1, 5.5.4f1, 5.6.1p3, 2017.1.0b9, 2017.2.0a3

All about bugs

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