Skip to content

Include fails if file is empty #861

Description

Seems like DXC is failing to include files within the same directory. In the attached files, basic.hlsl includes "other.hlsl", which is in the same directory and my expectation is that it should find it.

ZIP of example shader is attached.

Command line:

dxc -T vs_6_0 -E vsmain -Fo shader.dxil shader.hlsl

Also tried using -I. and prepending the directory before other.hslsl as well. Doesn't seem to work either.

bad_includes.zip

cc: Lei Zhang (@antiagainst) Ehsan (@ehsannas)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugBug, regression, crash

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions