yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wint3rNightAdd halfBitsToUint16 cases to the halfBitsToInt16 testb79d769a

main
540 B20 linesraw
1#version 450
2
3#extension GL_EXT_shader_explicit_arithmetic_types : require
4
5layout(location = 0) in vec4 v;
6layout(location = 0) out ivec4 o;
7layout(location = 1) out uvec4 u;
8
9void main()
10{
11    o.x = halfBitsToInt16(float16_t(v.x));
12    o.xy += halfBitsToInt16(f16vec2(v.xy));
13    o.xyz += halfBitsToInt16(f16vec3(v.xyz));
14    o += halfBitsToInt16(f16vec4(v));
15
16    u.x = halfBitsToUint16(float16_t(v.x));
17    u.xy += halfBitsToUint16(f16vec2(v.xy));
18    u.xyz += halfBitsToUint16(f16vec3(v.xyz));
19    u += halfBitsToUint16(f16vec4(v));
20}