microsoft / microsoft/DirectXShaderCompiler
[SPIR-V] Internal compiler error with bit-field
Open
@s-perron is already working on this.
Since Oct 14, 2025.
bug
spirv
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
With this simple HLSL code:
struct Test {
bool a: 1;
int b;
};
RWStructuredBuffer<Test> buffer;
[numthreads(1, 1, 1)]
void main(){
Test t;
t.a = true;
t.b = 1;
buffer[0] = t;
}
While compiling with command dxc.exe -T cs_6_5 -spirv test_ice.hlsl, we have error Internal compiler error: access violation. Attempted to read from address 0x0000000000000030, remove -spirv by compiling to dxil is ok.
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.