SPIRV-Cross/reference/shaders-hlsl-no-opt/asm/comp/constant-composite-undef.asm.comp
Hans-Kristian Arntzen e81c1b1d98 HLSL: Declare undef variables as static.
Undef variables would somehow become cbuffer variables without any
warning ...
2020-02-08 13:39:50 +01:00

15 lines
274 B
Plaintext

RWByteAddressBuffer block : register(u0);
static 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();
}