yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
b79d769a
main
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{ 11o .x = halfBitsToInt16 (float16_t (v .x )); 12o .xy += halfBitsToInt16 (f16vec2 (v .xy )); 13o .xyz += halfBitsToInt16 (f16vec3 (v .xyz )); 14o += halfBitsToInt16 (f16vec4 (v )); 15 16u .x = halfBitsToUint16 (float16_t (v .x )); 17u .xy += halfBitsToUint16 (f16vec2 (v .xy )); 18u .xyz += halfBitsToUint16 (f16vec3 (v .xyz )); 19u += halfBitsToUint16 (f16vec4 (v )); 20}