#version 450 #extension GL_EXT_shader_explicit_arithmetic_types_int16 : require #extension GL_EXT_shader_16bit_storage : require #extension GL_EXT_shader_explicit_arithmetic_types_int8 : require #extension GL_EXT_shader_8bit_storage : require #if defined(GL_AMD_gpu_shader_half_float) #extension GL_AMD_gpu_shader_half_float : require #elif defined(GL_EXT_shader_explicit_arithmetic_types_float16) #extension GL_EXT_shader_explicit_arithmetic_types_float16 : require #else #error No extension available for FP16. #endif layout(set = 0, binding = 0, std140) uniform block { i16vec2 a; u16vec2 b; i8vec2 c; u8vec2 d; f16vec2 e; } _28; layout(set = 0, binding = 1, std430) readonly buffer storage { i16vec3 f; u16vec3 g; i8vec3 h; u8vec3 i; f16vec3 j; } _55; layout(push_constant, std430) uniform pushconst { i16vec4 k; u16vec4 l; i8vec4 m; u8vec4 n; f16vec4 o; } _78; layout(location = 0) out i16vec4 p; layout(location = 0, component = 0) in uint16_t foo; layout(location = 1) out u16vec4 q; layout(location = 0, component = 1) in uint16_t bar; layout(location = 2) out f16vec4 r; layout(location = 1) in float16_t baz; void main() { p = i16vec4((((ivec4(int(uint(foo))) + ivec4(ivec2(_28.a), ivec2(_28.c))) - ivec4(ivec3(_55.f) / ivec3(_55.h), 1)) + ivec4(_78.k)) + ivec4(_78.m)); q = u16vec4((((uvec4(uint(bar)) + uvec4(uvec2(_28.b), uvec2(_28.d))) - uvec4(uvec3(_55.g) / uvec3(_55.i), 1u)) + uvec4(_78.l)) + uvec4(_78.n)); r = f16vec4(((vec4(float(baz)) + vec4(vec2(_28.e), 0.0, 1.0)) - vec4(vec3(_55.j), 1.0)) + vec4(_78.o)); gl_Position = vec4(0.0, 0.0, 0.0, 1.0); }