Debian Codegraph @

third_party/spirv-cross/reference/shaders/vulkan/vert/small-storage.vk.vert.vk

raw
1 #version 450
2 #extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
3 #extension GL_EXT_shader_16bit_storage : require
4 #extension GL_EXT_shader_explicit_arithmetic_types_int8 : require
5 #extension GL_EXT_shader_8bit_storage : require
6 #if defined(GL_AMD_gpu_shader_half_float)
7 #extension GL_AMD_gpu_shader_half_float : require
8 #elif defined(GL_EXT_shader_explicit_arithmetic_types_float16)
9 #extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
10 #else
11 #error No extension available for FP16.
12 #endif
13
14 layout(set = 0, binding = 0, std140) uniform block
15 {
16 i16vec2 a;
17 u16vec2 b;
18 i8vec2 c;
19 u8vec2 d;
20 f16vec2 e;
21 } _26;
22
23 layout(set = 0, binding = 1, std430) readonly buffer storage
24 {
25 i16vec3 f;
26 u16vec3 g;
27 i8vec3 h;
28 u8vec3 i;
29 f16vec3 j;
30 } _53;
31
32 layout(push_constant, std430) uniform pushconst
33 {
34 i16vec4 k;
35 u16vec4 l;
36 i8vec4 m;
37 u8vec4 n;
38 f16vec4 o;
39 } _76;
40
41 layout(location = 0) out i16vec4 p;
42 layout(location = 0, component = 0) in int16_t foo;
43 layout(location = 1) out u16vec4 q;
44 layout(location = 0, component = 1) in uint16_t bar;
45 layout(location = 2) out f16vec4 r;
46 layout(location = 1) in float16_t baz;
47
48 void main()
49 {
50 p = i16vec4((((ivec4(int(foo)) + ivec4(ivec2(_26.a), ivec2(_26.c))) - ivec4(ivec3(_53.f) / ivec3(_53.h), 1)) + ivec4(_76.k)) + ivec4(_76.m));
51 q = u16vec4((((uvec4(uint(bar)) + uvec4(uvec2(_26.b), uvec2(_26.d))) - uvec4(uvec3(_53.g) / uvec3(_53.i), 1u)) + uvec4(_76.l)) + uvec4(_76.n));
52 r = f16vec4(((vec4(float(baz)) + vec4(vec2(_26.e), 0.0, 1.0)) - vec4(vec3(_53.j), 1.0)) + vec4(_76.o));
53 gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
54 }
55