Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0xb3
Issue ID
866231
Regression
Yes
Compute shader fails to open indirectly included shader files
If a shader is included from another shader which references it, the compute shader fails to open it.
Steps to reproduce:
1) Open the attached project.
Errors pop up in the console:
Shader error in 'NewComputeShader.compute': failed to open source file: 'Inc3.hlsl' (on metal)
Shader error in 'NewComputeShader.compute': failed to open source file: 'Inc3.hlsl' (on glcore)
The project consists of 3 shaders - a simple shader "Inc3.hlsl", "Inc2.hlsl", which includes it and "Inc1.hlsl", which includes "Inc2.hlsl". "Inc3.hlsl" cannot be opened by compute shader, because it is included indirectly.
Reproduced on:
5.6.0b4, 5.6.0a1
Did not reproduce:
5.5.0p4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes and a window with "GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)" error is shown when launching a freshly created project
- Editor Windows dragging behavior is erratic/glitchy when a specific multi-display setup is used and the Editor window is not on the main display
- Meta Quest missing an icon in Build Profiles window in U6.0
- Foldout arrow indent is misaligned in the Inspector when used for Arrays or Lists
- Material import pipeline strips properties when it is added with a script
Add comment