Search Issue Tracker

Fixed in 10.2.0

Votes

0

Found in [Package]

10.0.0-preview.27

Issue ID

1270168

Regression

No

[Shader Graph] Shader breaks when a certain symbol is added to an Enum keyword Entry's display name

Package: Shader Graph

-

How to reproduce:
1. Open the user's attached "Gondwana2020.zip" project
2. Create a new Shader Graph in the Project window (Right-click -> Create -> Shader -> PBR Graph)
3. Double click on the created Shader Graph to open it in the Shader Editor
4. Press the plus sign -> Keyword -> Enum in the left window of the Shader Editor
5. Select the newly created Enum keyword
6. Add a plus symbol in one of the Entries display names in the Graph Inspector and press Enter
7. Click "Save Asset" in the Shader Editor
8. Make sure the Shader Asset is selected
9. Observe the Inspector
10. Create a Material of the Shader (Right-click on the Shader Asset -> Create -> Material)

Expected result: No warning message is thrown in the Inspector window when a symbol is added to an Enum keyword Entry's display name (step 9) and the Material can be created (step 10)
Actual result: "shader is not supported on this GPU (none of the subshaders/fallbacks are suitable)" warning message is thrown in the Inspector window when a symbol is added to an Enum keyword Entry's display name (step 9), which breaks the Shader and the Material can't be created (step 10)

Reproducible with: 7.3.1 (2019.4.9f1), 8.2.0 (2020.1.3f1), 10.0.0-preview.27 (2020.2.0a21)
Could not test with: 4.10.0-preview (2018.4.26f1) - Enum keyword not supported

Notes:
- The issue is reproducible also with these symbols in the display names of Enum keyword's Entries: ! @ $ % ^ & * - = / ? \ < > ; : ' " [ ] { } ` ~
- The issue is not reproducible with these symbols in the display names of Enum keyword's Entries: # ( ) , . _
- The issue is reproducible in both URP and HDRP
- In 2019.4.9f1 and 2020.1.3f1 in the Actual result, the Material is not created at all, while in 2020.2.0a21 the Material is created as a Default Asset
- The issue is reproducible with Unlit Graph, PBR Graph, Sprite Lit Graph, Sprite Unlit Graph, Decal Graph, Fabric Graph, Eye Graph, StackLit Graph, Hair Graph, Lit Graph
- The issue is not reproducible with VFX Shader Graph, Sub Graph

  1. Resolution Note (fix version 10.2.0):

    Fixed in: 10.2.0 (available in 2020.2.0b8 and above)

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.