Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0b5
Issue ID
959928
Regression
No
[Compute] ComputeShader.SetFloats only works for first data in float array
Only the first data (i.e. floatarray[0]) of float array is correct in compute shader, which values are set using ComputeShader.SetFloats in C# script.
Step:
1. Open repro scene
2. Hit play.
Expected result: the sphere is yellow
Actual result: the sphere is red
Reproducible in : 2017.3.0b5, 2017.2.0f3 ,2017.1.2p1, 5.6.3p3
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
- Double separation lines are present in a kebab dropdown menu
- [URP] CommandBuffer: built-in render texture type 3 not found while executing warning is thrown when Game view is open and OpenGL is used
- User gets "Sorry...that page seems to be missing" when click a help icon
- Horizontal Scrollbar appears in the Inspector Window when the Volume Component is added
- Build Profiles - Feature Request: Editor restart button would improve the user experience
ModLunar
Jun 13, 2018 00:08
Uh.. why was this made by design on purpose? Doesn't this waste space? Or should we be making our code more optimized for the way GPU needs padding on stuff? (Or something like that?)
Destolos
Mar 07, 2018 11:06
I have the same problem. It seems to be that only every fourth value is used.
For example:
I want to set "1, 2, 3, 4, 5, 6, 7, 8, 9"
But I have to do: "1, x, x, x, 2, x, x, x, 3,