xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.specConstantOp.float16.comp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 450
2#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
3
4// Produce an OpSpecConstantOp with 8 bit integer type
5
6layout(constant_id = 0) const float c = 8;
7
8layout(binding=0) writeonly restrict buffer S {
9    float16_t p_out[];
10};
11
12void main()
13{
14    p_out[0] = float16_t(c);
15}
16
17
18
19