Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2020.2
2020.3
2020.3.0f1
2021.1
2021.2
Issue ID
1322879
Regression
No
.hlsl file doesn't get included when using #pragma once
How to reproduce:
1. Open the attached '1322879.zip' project
2. Observe the Console
Expected result: There are no visible errors present
Actual result: Multiple Shader errors appear in the Console
Reproducible with: 2020.2.7f1, 2020.3.2f1, 2021.1.0f1, 2021.2.0a10
Cannot test with: 2018.4.33f1 (due to errors related to the user's Script ), 2019.4.23f1 (pragma once gets ignored)
Notes:
- In 2019.4.23f1 the following warning appears in the Console:
Shader warning in 'Hidden/FogOfWarUnpack': 'once' : unknown pragma ignored at Assets/Shaders/FogOfWar/Common.hlsl(1) (on d3d11)
- Tested with Vulcan, Direct3D11, Direct3D12, OpenGLCore, OpenGLES3 APIs
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a12
Resolution Note (fix version 2021.1):
Fixed in 2021.1.2f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.5f1