Search Issue Tracker
Duplicate
Votes
0
Found in
2021.3.29f1
2022.3.8f1
2023.1.10f1
2023.2.0b6
2023.3.0a2
Issue ID
UUM-46582
Regression
No
A Shader error is thrown in the Console when the line after an #include directive is not followed by a comment or a #define directive in a Compute Shader file
Reproduction steps:
1. Open the "IN-51499.zip" project
2. Open the "Assets/Shaders/TerrainTreeStamp.compute" file
3. Delete line 6 and observe the Console
Expected results: No error is thrown in the Console
Actual results: A Shader error is thrown in the Console
Reproducible with: 2021.3.29f1, 2022.3.8f1, 2023.1.10f1, 2023.2.0b6, 2023.3.0a2
Reproducible on: macOS 13.4 (M1), Windows 10 (reported by the user)
Not reproducible on: No other environment tested
Full error: "Shader error in 'TerrainTreeStamp': undeclared identifier '_AppendTrees' at kernel CSStampTrees at TerrainTreeStamp.compute(9) (on metal)"
-
Resolution Note:
null
Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-35030
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
- Property field override bar does not update transparency correctly when switching between valid and invalid GameObjects
- Project window selection is not updated when search term is changed
- Error when adding valid MonoBehaviour script to Prefab in Project window
- Editor Launch Screen will close when Enter is pressed on it
- ObjectPool's pool is destroyed when entering Play Mode without reloading Domain
This is a duplicate of issue #UUM-35844