Search Issue Tracker

Fixed

Fixed in 2021.3.30f1

Votes

1

Found in

2021.3.21f1

Issue ID

UUM-31964

Regression

Yes

[BiRP SG] Shader Graph compiles with errors when using Built-in Shaders, Vulkan Graphics API, and Android build

--

-

How to reproduce:
1. Open the "ShaderGraphTest" project
2. Switch platform to "Android" (File > Build Settings > Android > Switch Platform)
3. Set “Vulkan” as the main Graphics API (File > Build Settings > Android > Player Settings > Other Settings > Graphics APIs)
4. Make sure “Apply display rotation during rendering” is enabled (File > Build Settings > Android > Player Settings > Other Settings > Vulkan Settings)
5. Create a new Built-in Render Pipeline Shader Graph (Project Window > Right Click > Create > Shader Graph > Builtin > Lit Shader Graph)
6. Select the newly created Shader Graph, navigate to the Inspector and select "Compile and show code"

Expected result: Shader Graph is successfully compiled
Actual result: Shader Graph is compiled but errors are logged to the Console

Reproduced with: 12.1.0 (2021.2.0f1), 12.1.10 (2021.3.22f1), 14.0.3 (2022.2.0a15)
Not reproduced with: 12.0.0 (2021.2.0b15), 14.0.6 (2022.2.13f1), 15.0.4 (2023.1.0b10), 16.0.0 (2023.2.0a8)
Could not test with: 10.10.1 (2020.3.46f1) (Shader Graph incompatible with Built-in Render Pipeline)
Fixed in: 14.0.4 (2022.2.0f1)

Reproduced on: Windows 10 (by reporter), Windows 11

Error logs after compiling Built-in Lit Shader Graph:
Log #1:

{noformat}Assertion failed on expression: 's.buildTarget.platform >= kFirstValidStandaloneTarget'
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&){noformat}

Log #2:

{noformat}Assertion failed on expression: 'buildTarget.platform >= kFirstValidStandaloneTarget'
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&){noformat}

Notes:
1. In versions that are not reproducible, the Console logs warnings
2. Cannot test below Unity Editor versions 2021.2 / Shader Graph package versions below 12.0.0 → on those versions Shader Graph does not support Built-in Render Pipeline
3. Shader Graph Unity Editor Version 2021.1 documentation: [https://docs.unity3d.com/2021.1/Documentation/Manual/shader-graph.html|https://docs.unity3d.com/2021.1/Documentation/Manual/shader-graph.html|smart-link]
4. Shader Graph Unity Editor Version 2021.2 documentation: [https://docs.unity3d.com/2021.2/Documentation/Manual/shader-graph.html|https://docs.unity3d.com/2021.2/Documentation/Manual/shader-graph.html|smart-link]

  1. Resolution Note (fix version 2021.3.30f1):

    This has been independently fixed in 2021.3.30f1

Comments (1)

  1. LegacySystem

    Sep 03, 2023 21:03

    Any updates about the issue ?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.