xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.specConstant.float16.comp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 450
2#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
3
4layout(constant_id = 1) const float16_t sc0 = 9.5hf;
5layout(constant_id = 2) const float16_t sc1 = -14.25hf;
6
7layout (set = 0, binding = 0, std430) writeonly buffer Output {
8    float16_t r0;
9    float16_t r1;
10} sb_out;
11
12
13void main (void)
14{
15    sb_out.r0 = sc0;
16    sb_out.r1 = sc1;
17}
18
19