You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the SPIR-V backend doesn't include debug information for include files that only have definitions but no code. You should be able to see that in the RenderDoc's shader viewer/editor. It doesn't have source tabs for any such include files.
Without those files it is impossible for RenderDoc to recompile the edited shaders.
Description
It looks like the SPIR-V backend doesn't include debug information for include files that only have definitions but no code. You should be able to see that in the RenderDoc's shader viewer/editor. It doesn't have source tabs for any such include files.
Without those files it is impossible for RenderDoc to recompile the edited shaders.
Steps to Reproduce
This setup:
built with
only includes the source of
source.hlsl
in the output, as verified withspirv-dis
.If you make a small change:
Then the same build works correctly and includes the
test.hlsl
source.Expected result
Compilation success. DXC produces SPIR-V binaries with all include files.
Actual Behavior
SPIR-V binary missing source code for
#define
only include files.Environment
git submodule update --init
has been invoked before buildhctbuild
build parameters:-official -rel -x64 -vs2022 -speak-up -no-dxilconv -spirv
dxc.exe
v1.8.2407.10013 executable, commit SHA-1a2a220bc616ca28848ec0af77ad33a09f92fa43a
Would you kindly help?
P.S. Original issue was observed in RenderDoc's issue #3425 and described in details.
The text was updated successfully, but these errors were encountered: