Open Dredhog opened 3 years ago
@Dredhog Thanks for reporting this crash. The compiler was lacking in the area of checking for unsupported types for SV semantics that lead to random crashes reported here or in #2954. We expect to soon deploy a change #3043 which would start reporting compilation error for unsupported types.
Reverted change resurfaced this bug
With current DXC this crashes the compiler with:
error: cast<X>() argument of incompatible type!
For float, float2, float3 and float4.
Title
[DXIL] Decorating CS float argument with SV_DispatchThreadID semantic crashes the compiler (float2, float3 and float4 works)
Functional impact
Compiler crashes
Minimal repro steps
dxc.exe -T cs_6_0 -E CSMain issue_shader.txt
:[numthreads(1, 1, 1)] void CSMain(float id : SV_DispatchThreadID) { rwTexture[3] = id.xxxx; }