Search Issue Tracker
By Design
Votes
0
Found in
2019.2
2019.2.0f1
2019.3
2020.1
Issue ID
1184416
Regression
No
ComputeBufferType.Constant is incompatible with ComputeShader
How to reproduce:
1. Open the attached project ("case_1184416-ComputeCBufferBug") using the EnvIronman VM (optional) (more information in Edit)
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Inspect Console
Expected results: Numbers from 1 to 8 are printed
Actual results: "0" is printed 8 times
Reproducible with: 2019.2.11f1, 2019.3.0b9, 2020.1.0a11
Couldn't test with 2017.4, 2018.4 ('ComputeBufferType' does not contain a definition for 'Constant')
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
Use Shader.SetConstantBuffer for Constant Buffer. For more information, please read:
https://docs.unity3d.com/2019.1/Documentation/ScriptReference/ComputeBufferType.Constant.html