microsoft / microsoft/DirectXShaderCompiler
cbuffer assert when using -fspv-debug=vulkan-with-source
Open
Nobody has claimed this yet.
bug
spirv
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Hi,
I am trying to generate debug info with -fspv-debug=vulkan-with-source but when the shader has a cbuffer, dxc.exe throws an assert in LowerTypeVisitor::visitInstruction
assert(isa<SpirvDebugGlobalVariable>(debugInstruction) &&
isa<HybridType>(debugSpirvType));
DebugSpirvType is clang::spirv::SpirvPointerType*
Code to reproduce:
cbuffer scene : register(b1) {
const uint var;
}
void ps_main() {
}
Line arguments:
-spirv -fspv-target-env=vulkan1.3 -T ps_6_2 -E ps_main -fvk-use-dx-layout -fspv-debug=vulkan-with-source
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.