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:
Log #2:
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
4. Shader Graph Unity Editor Version 2021.2 documentation: https://docs.unity3d.com/2021.2/Documentation/Manual/shader-graph.html