Search Issue Tracker
By Design
Votes
1
Found in
2017.2.0f3
Issue ID
973508
Regression
No
[Win] First StructuredBuffer will be deleted when calling ComputeShader.SetBuffer twice giving the same buffer
Steps to reproduce:
1. Open attached project "973508.zip"
2. Click on "TEST BUFFER/Add numbers" menu item
*two identical int arrays will be added with each other*
*two lines will be printed in the console: one of the input int arrays and the result of added numbers*
3. Observe the console
Actual result: when calling ComputeShader.SetBuffer twice giving the same buffer, the first StructuredBuffer will be deleted, so the result line in the console is exactly the same as the input line
ComputeShader.SetBuffer(kernel, "array_1", buffer);
ComputeShader.SetBuffer(kernel, "array_2", buffer); - at this point the StructuredBuffer "array_1" will be deleted
Not reproducible on OSX
Reproducible with: 5.6.4p3, 2017.1.2p3, 2017.2.0p4, 2017.3.0f1, 2018.1.0a7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment