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

Shaders

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.