If change the code in one of the following ways, the issue is not occurred.
Get()'s 1st argument type is changed to float
main()'s returning type is changed to void
Actual Behavior
fatal error: generated SPIR-V is invalid: OpStore Pointer '2[%out_var_SV_Target]'s type does not match Object '6[%6]'s type.
OpStore %out_var_SV_Target %6
Description DXC generates an invalid SPIR-V
Steps to Reproduce
dxc -T ps_6_0 -spirv path/to/file.hlsl
HLSL code:
If change the code in one of the following ways, the issue is not occurred.
float
void
Actual Behavior
Without validation:
Environment