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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Add comment