Search Issue Tracker
Fixed in 2021.3.31f1
Fixed in 2023.3.0a7
Votes
0
Found in
2020.3.47f1
2021.3.24f1
2022.2.18f1
2023.1.0b15
2023.2.0a13
2023.3.0a2
Issue ID
UUM-35844
Regression
No
"Shader error in 'Kernel': syntax error" when including a hlsl file with multiple comment lines on top using "include_with_pragmas"
Reproduction steps:
1. Open the attached “ASDQWE” project
2. Observe the Console Window
Expected result: No error is thrown
Actual result: “Shader error in 'Kernel': syntax error: unexpected token 'OneUint' at kernel Kernel at Kernel.compute(6) (on metal)“ is thrown
Reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.1.24f1, 2022.2.16f1, 2023.1.0b13
Reproducible on: Intel MacOS 13.3.1
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2021.3.31f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-35030
Resolution Note (fix version 2023.3.0a7):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-35030