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_vert.h generated by: 19 // python3 scripts/glsl-shader-to-spv.py common/end2end/shaders/simple_shader.vert 20 // common/end2end/shaders/simple_shader_vert.h kSimpleShaderVert 21 22 #include <stdint.h> 23 24 #include <vector> 25 26 // From common/end2end/shaders/simple_shader.vert: 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 (location = 0) in vec4 pos; 45 // layout (location = 1) in vec4 inColor; 46 // 47 // layout (location = 0) out vec4 outColor; 48 // 49 // void main() 50 // { 51 // outColor = inColor; 52 // gl_Position = pos; 53 // } 54 55 const std::vector<uint32_t> kSimpleShaderVert = { 56 0x07230203, 0x00010000, 0x000d000b, 0x00000018, 0x00000000, 0x00020011, 0x00000001, 0x0006000b, 57 0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001, 58 0x0009000f, 0x00000000, 0x00000004, 0x6e69616d, 0x00000000, 0x00000009, 0x0000000b, 0x00000012, 59 0x00000015, 0x00030003, 0x00000002, 0x000001c2, 0x000a0004, 0x475f4c47, 0x4c474f4f, 0x70635f45, 60 0x74735f70, 0x5f656c79, 0x656e696c, 0x7269645f, 0x69746365, 0x00006576, 0x00080004, 0x475f4c47, 61 0x4c474f4f, 0x6e695f45, 0x64756c63, 0x69645f65, 0x74636572, 0x00657669, 0x00040005, 0x00000004, 62 0x6e69616d, 0x00000000, 0x00050005, 0x00000009, 0x4374756f, 0x726f6c6f, 0x00000000, 0x00040005, 63 0x0000000b, 0x6f436e69, 0x00726f6c, 0x00060005, 0x00000010, 0x505f6c67, 0x65567265, 0x78657472, 64 0x00000000, 0x00060006, 0x00000010, 0x00000000, 0x505f6c67, 0x7469736f, 0x006e6f69, 0x00070006, 65 0x00000010, 0x00000001, 0x505f6c67, 0x746e696f, 0x657a6953, 0x00000000, 0x00070006, 0x00000010, 66 0x00000002, 0x435f6c67, 0x4470696c, 0x61747369, 0x0065636e, 0x00070006, 0x00000010, 0x00000003, 67 0x435f6c67, 0x446c6c75, 0x61747369, 0x0065636e, 0x00030005, 0x00000012, 0x00000000, 0x00030005, 68 0x00000015, 0x00736f70, 0x00040047, 0x00000009, 0x0000001e, 0x00000000, 0x00040047, 0x0000000b, 69 0x0000001e, 0x00000001, 0x00050048, 0x00000010, 0x00000000, 0x0000000b, 0x00000000, 0x00050048, 70 0x00000010, 0x00000001, 0x0000000b, 0x00000001, 0x00050048, 0x00000010, 0x00000002, 0x0000000b, 71 0x00000003, 0x00050048, 0x00000010, 0x00000003, 0x0000000b, 0x00000004, 0x00030047, 0x00000010, 72 0x00000002, 0x00040047, 0x00000015, 0x0000001e, 0x00000000, 0x00020013, 0x00000002, 0x00030021, 73 0x00000003, 0x00000002, 0x00030016, 0x00000006, 0x00000020, 0x00040017, 0x00000007, 0x00000006, 74 0x00000004, 0x00040020, 0x00000008, 0x00000003, 0x00000007, 0x0004003b, 0x00000008, 0x00000009, 75 0x00000003, 0x00040020, 0x0000000a, 0x00000001, 0x00000007, 0x0004003b, 0x0000000a, 0x0000000b, 76 0x00000001, 0x00040015, 0x0000000d, 0x00000020, 0x00000000, 0x0004002b, 0x0000000d, 0x0000000e, 77 0x00000001, 0x0004001c, 0x0000000f, 0x00000006, 0x0000000e, 0x0006001e, 0x00000010, 0x00000007, 78 0x00000006, 0x0000000f, 0x0000000f, 0x00040020, 0x00000011, 0x00000003, 0x00000010, 0x0004003b, 79 0x00000011, 0x00000012, 0x00000003, 0x00040015, 0x00000013, 0x00000020, 0x00000001, 0x0004002b, 80 0x00000013, 0x00000014, 0x00000000, 0x0004003b, 0x0000000a, 0x00000015, 0x00000001, 0x00050036, 81 0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x000200f8, 0x00000005, 0x0004003d, 0x00000007, 82 0x0000000c, 0x0000000b, 0x0003003e, 0x00000009, 0x0000000c, 0x0004003d, 0x00000007, 0x00000016, 83 0x00000015, 0x00050041, 0x00000008, 0x00000017, 0x00000012, 0x00000014, 0x0003003e, 0x00000017, 84 0x00000016, 0x000100fd, 0x00010038};