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
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
- Editor freezes when handling Havok collision interactions between a thin collider and the player controller
- No blue outline is shown on a folder in the Project tab when an external file is being dragged over the folder
- Profiler - Taking you to the wrong section when using 'show'
Add comment