[Shader Execution Reordering] using namespace dx; not working for MaybeReorderThread
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
Note that this is not SER specific. I expect the same would happen if you called vk builtins using namespace vk