DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

[Shader Execution Reordering] using namespace dx; not working for MaybeReorderThread

Open amarpMSFT opened this issue 1 year ago • 1 comments

Description using namespace dx; then calling MaybeReorderThread() produces different DXIL than dx::MaybeReorderThread. The namespace version fails state object creation "Unresolved reference to function "MaybeReorderThread" (mangled name: "\01?MaybeReorderThread@dx@@YAXII@Z") by export "MyRaygenShader". "

Steps to Reproduce Compile this distilled repro shader: dxc /t lib_6_9 NamespaceRepro.hltl.txt NamespaceRepro.hlsl.txt

Compare with compiling the same shader with "#define REPRO" commented out.

Actual Behavior State object creation fails per above.

Environment

  • DXC version 1.9 - 1.8.2505.28 (9efbb6c32); dxil.dll: 1.9(1.8.2505.28)
  • Host Operating System Win11

amarpMSFT avatar May 29 '25 00:05 amarpMSFT

Note that this is not SER specific. I expect the same would happen if you called vk builtins using namespace vk

simoll avatar Jun 05 '25 08:06 simoll