Search Issue Tracker

Fixed

Fixed in 2023.1.0b13, 2023.2.0a3

Votes

0

Found in

2021.3.11f1

2022.1.17f1

2022.2.0b8

2023.1.0a11

2023.2.0a1

Issue ID

UUM-15114

Regression

No

[HDRP] Shader errors are thrown in the Console window when switching to an unsupported Platform in Build settings

--

-

How to reproduce:
1. Create a new project using 3D Sample Scene (HDRP) Template
2. Go to File > Build Settings and switch to Android or WebGL Platform
3. Observe the Console window

Expected results: Only the "Platform Android is not supported with HDRP." error is present in the Console window
Actual results: Shader errors are spammed in the Console window

Reproducible with: 10.10.0 (2020.3.40f1), 12.1.7 (2021.3.11f1), 13.1.8 (2022.1.17f1), 14.0.3 (2022.2.0b8), 15.0.1 (2023.1.0a11)

Notes:
- No shader errors are spammed in the Console when the project is switched to the iOS Platform
- Reproducible with Android and WebGL Platforms
- Errors:
"Shader error in '[ButterFlies] [System] Update Particle': syntax error: unexpected token '#' at kernel CSMain at (59)/Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.7/Runtime/ShaderLibrary/ShaderVariablesFunctions.hlsl(119) (on gles3)"
"Shader error in '[FallingLeaves] [System] Initialize Particle': syntax error: unexpected token '#' at kernel CSMain at (59)/Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.7/Runtime/ShaderLibrary/ShaderVariablesFunctions.hlsl(119) (on gles3)"

Comments (1)

  1. galvindai

    Sep 22, 2022 02:10

    good

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.