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
Comments (2)
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
- Global Volume visual details are blurred when Tonemapping mode is set to any other than 'ACES'
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
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,