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)"

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.