Search Issue Tracker
Fixed in 12.0.0
Votes
0
Found in [Package]
12.0.0
Issue ID
1348666
Regression
Yes
VFX OpenGLES3 error when compiling shaders unexpected token '#' at kernel CSMain
Reproduction steps:
1. Open the attached project “URPIntegrationTests.zip”
2. Go to Edit > Project Settings > Player
3. In Other Settings select OpenGLES3 Graphics API
4. Go to File > Build Settings
5. Build application for Android and observe the Console window
Expected result: Build successful, no errors in the Console window
Actual result: Build fails, error is thrown in the Console window: “Shader error in '[SimpleRibbon] [Ribbon] Initialize Particle Strip': syntax error: unexpected token '#' at kernel CSMain at C:/Users/%username%/Desktop/GraphicsTests/EndToendTests/URPIntegrationTests/Library/PackageCache/com.unity.visualeffectgraph@12.0.0/Shaders/VFXCommon.hlsl(123) (on gles3)”
-
Sonicay
Jun 02, 2022 19:36
I also have this issue with 2022.1.3f1, D1KKOP solution solved this issue for me, thanks.
-
bartje86tralala
Feb 02, 2022 17:22
For now this bug can be fixed by going to:
C:\Program Files\Unity\Hub\Editor\2022.1.0b6\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.visualeffectgraph\Shaders\VFXCommon.hlslThen go and change CUBEARRAY to 0 instead of 1.
#ifdef SHADER_STAGE_COMPUTE
#define SHADER_AVAILABLE_CUBEARRAY 0
#endif -
bartje86tralala
Feb 02, 2022 17:04
I still have this in (at the time of writing newest version (2022.1.0b6)
Also in 2022.1.0b4.
It prevents building for Android.
No build is necessary to observe the issue.
The issue is in: VFXCommon.hlsl line: 136
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
- [Happy Harvest] #ThunderLabel text is "\u26C8" instead of "⛈"
- Warning “New Sprite Atlas: There is a mismatch in secondary textures of sprites compared to WhiteUnit, wasting texture space and potentially break draw call batching. Affected Sprites are (Flag)“ is thrown when packing Atlas with Sprite Atlas V2
- Sprite Editor dropdown text is cut-off for options with longer text
- Sprite Editor can't be scrolled horizontally using the trackpad gesture
- BRG picking skips BatchDrawCommandProcedural when selecting the GameObject in the scene
Resolution Note (fix version 12.0.0):
Fixed in: 2021.2.0b16