Search Issue Tracker
Fixed in N/A (awaiting for merge)
Fixed in 10.5.0
Votes
0
Found in [Package]
12.0.0
Issue ID
1323434
Regression
No
[VFX] Too many GPU Event leads to compilation error
After link of 6 gpu event to the same system observe the error
`syntax error: unexpected token 'if' at kernel CSMain`
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
- Crash on mono_dump_native_crash_info when changing a Particle System Renderer’s Material Shader to Standard Unlit
- VFX Prefab doesn’t have Preview icon in Project window and Preview window is empty in Inspector window
- Visual Effect Graph error message does not disappear and lasts forever until the Visual Effect Graph is reopened even when the error causing connection/node is deleted and Visual Effect Graph is saved
- “RenderSettings customReflection texture has invalid type” error keeps getting thrown even when Environment Reflections was set back to Skybox from Custom with an invalid texture
- Particle System with the custom Material breaks the Scene view when the material is using a Shader Graph with the Texture with the power of negative value
Resolution Note (fix version N/A (awaiting for merge)):
Thanks for this report, the fix is pretty straightforward and related to this line of code : https://github.com/Unity-Technologies/Graphics/blob/master/com.unity.visualeffectgraph/Editor/Compiler/VFXCodeGenerator.cs#L144
However, 6 output for gpuevent are only possible on DX11 if the sorting is disabled or there isn't any particle lifetime, otherwise, you will get this error :
```Shader uses 9 UAVs (0 textures and 9 buffers), which is more than the 8 maximum currently supported on D3D11.0.This is OK if you are only targeting D3D11.1 platforms at kernel CSMain (on d3d11)```