1 // Copyright (C) 2024 The Android Open Source Project
2 // Copyright (C) 2024 Google Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 // Please do not modify directly.
17 
18 // Autogenerated module common/end2end/shaders/simple_shader_frag.h generated by:
19 //   python3 scripts/glsl-shader-to-spv.py common/end2end/shaders/simple_shader.frag
20 //   common/end2end/shaders/simple_shader_frag.h kSimpleShaderFrag
21 
22 #include <stdint.h>
23 
24 #include <vector>
25 
26 // From common/end2end/shaders/simple_shader.frag:
27 
28 // // Copyright (C) 2024 The Android Open Source Project
29 // //
30 // // Licensed under the Apache License, Version 2.0 (the "License");
31 // // you may not use this file except in compliance with the License.
32 // // You may obtain a copy of the License at
33 // //
34 // // http://www.apache.org/licenses/LICENSE-2.0
35 // //
36 // // Unless required by applicable law or agreed to in writing, software
37 // // distributed under the License is distributed on an "AS IS" BASIS,
38 // // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 // // See the License for the specific language governing permissions and
40 // // limitations under the License.
41 //
42 // #version 450
43 //
44 // layout (binding = 0) uniform UniformBuffer {
45 //   vec4 color1;
46 // };
47 //
48 // layout (location = 0) in vec4 color;
49 //
50 // layout (location = 0) out vec4 outColor;
51 //
52 // void main()
53 // {
54 //   outColor = color + color1;
55 // }
56 
57 const std::vector<uint32_t> kSimpleShaderFrag = {
58     0x07230203, 0x00010000, 0x000d000b, 0x00000016, 0x00000000, 0x00020011, 0x00000001, 0x0006000b,
59     0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001,
60     0x0007000f, 0x00000004, 0x00000004, 0x6e69616d, 0x00000000, 0x00000009, 0x0000000b, 0x00030010,
61     0x00000004, 0x00000007, 0x00030003, 0x00000002, 0x000001c2, 0x000a0004, 0x475f4c47, 0x4c474f4f,
62     0x70635f45, 0x74735f70, 0x5f656c79, 0x656e696c, 0x7269645f, 0x69746365, 0x00006576, 0x00080004,
63     0x475f4c47, 0x4c474f4f, 0x6e695f45, 0x64756c63, 0x69645f65, 0x74636572, 0x00657669, 0x00040005,
64     0x00000004, 0x6e69616d, 0x00000000, 0x00050005, 0x00000009, 0x4374756f, 0x726f6c6f, 0x00000000,
65     0x00040005, 0x0000000b, 0x6f6c6f63, 0x00000072, 0x00060005, 0x0000000d, 0x66696e55, 0x426d726f,
66     0x65666675, 0x00000072, 0x00050006, 0x0000000d, 0x00000000, 0x6f6c6f63, 0x00003172, 0x00030005,
67     0x0000000f, 0x00000000, 0x00040047, 0x00000009, 0x0000001e, 0x00000000, 0x00040047, 0x0000000b,
68     0x0000001e, 0x00000000, 0x00050048, 0x0000000d, 0x00000000, 0x00000023, 0x00000000, 0x00030047,
69     0x0000000d, 0x00000002, 0x00040047, 0x0000000f, 0x00000022, 0x00000000, 0x00040047, 0x0000000f,
70     0x00000021, 0x00000000, 0x00020013, 0x00000002, 0x00030021, 0x00000003, 0x00000002, 0x00030016,
71     0x00000006, 0x00000020, 0x00040017, 0x00000007, 0x00000006, 0x00000004, 0x00040020, 0x00000008,
72     0x00000003, 0x00000007, 0x0004003b, 0x00000008, 0x00000009, 0x00000003, 0x00040020, 0x0000000a,
73     0x00000001, 0x00000007, 0x0004003b, 0x0000000a, 0x0000000b, 0x00000001, 0x0003001e, 0x0000000d,
74     0x00000007, 0x00040020, 0x0000000e, 0x00000002, 0x0000000d, 0x0004003b, 0x0000000e, 0x0000000f,
75     0x00000002, 0x00040015, 0x00000010, 0x00000020, 0x00000001, 0x0004002b, 0x00000010, 0x00000011,
76     0x00000000, 0x00040020, 0x00000012, 0x00000002, 0x00000007, 0x00050036, 0x00000002, 0x00000004,
77     0x00000000, 0x00000003, 0x000200f8, 0x00000005, 0x0004003d, 0x00000007, 0x0000000c, 0x0000000b,
78     0x00050041, 0x00000012, 0x00000013, 0x0000000f, 0x00000011, 0x0004003d, 0x00000007, 0x00000014,
79     0x00000013, 0x00050081, 0x00000007, 0x00000015, 0x0000000c, 0x00000014, 0x0003003e, 0x00000009,
80     0x00000015, 0x000100fd, 0x00010038};