SPIRV-Cross/reference/shaders-hlsl-no-opt/asm/comp/constant-composite-undef.asm.comp
Hans-Kristian Arntzen df3e21a762 Parser: Fix OpCompositeConstruct with OpUndef.
Just treat any undefined argument as 0. It is risky to use the undefined
variable as it might not lower to a true constant.
2019-03-27 10:51:23 +01:00

15 lines
267 B
Plaintext

RWByteAddressBuffer block : register(u0);
float _15;
void comp_main()
{
block.Store4(0, asuint(float4(0.100000001490116119384765625f, 0.20000000298023223876953125f, 0.300000011920928955078125f, 0.0f)));
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}