• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// GENERATED FILE - DO NOT EDIT.
2// Generated by gen_vk_internal_shaders.py.
3//
4// Copyright 2018 The ANGLE Project Authors. All rights reserved.
5// Use of this source code is governed by a BSD-style license that can be
6// found in the LICENSE file.
7//
8// shaders/gen/ConvertVertex.comp.00000007.inc:
9//   Pre-generated shader for the ANGLE Vulkan back-end.
10
11#pragma once
12constexpr uint8_t kConvertVertex_comp_00000007[] = {
13    0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x9d,0x57,0x5f,0x4c,0x95,0x75,
14    0x18,0xfe,0xde,0x73,0x0e,0x07,0x12,0x54,0x08,0xfb,0xb7,0x99,0xb3,0x88,0x12,0x61,
15    0xea,0x98,0xb5,0x96,0xab,0x95,0x37,0xe6,0xa2,0x15,0x69,0x23,0xb9,0x89,0x23,0xa7,
16    0x99,0x2e,0x2c,0x07,0x9b,0x0e,0x88,0x61,0xab,0xb6,0x2e,0x62,0x5c,0x98,0xd9,0xd6,
17    0x62,0x05,0x5b,0x61,0xa6,0x5e,0x58,0xb7,0x15,0x53,0x58,0x4d,0x2d,0x6e,0xcc,0xa6,
18    0xa5,0x03,0x8f,0xe2,0x6d,0x25,0x51,0x19,0xf4,0x3e,0xdf,0xfb,0xfc,0xe2,0xed,0x9b,
19    0x57,0x9d,0xed,0xb7,0xef,0x7b,0x9f,0xf7,0xff,0xf3,0xfb,0xf7,0x9d,0x74,0xaa,0xaa,
20    0x38,0x8a,0x24,0x5a,0x10,0x95,0x44,0x57,0x25,0x8a,0x7f,0x15,0x51,0x2a,0xc2,0x6b,
21    0x69,0x94,0x8d,0x9f,0x1b,0x1a,0x36,0x35,0xac,0x6a,0xef,0xc8,0xaf,0x5a,0x7b,0xff,
22    0x1a,0xe8,0x17,0x45,0xe9,0xd8,0x0e,0xba,0xc5,0x6a,0x53,0xa4,0xcf,0x8c,0x8e,0xb6,
23    0xdc,0xf6,0x9d,0xc0,0xa7,0x74,0x94,0x2b,0x9e,0x89,0x63,0x45,0xd1,0xa3,0xb4,0xc5,
24    0x78,0x5c,0xad,0xab,0x2d,0x4d,0x54,0xc5,0x67,0xc0,0x84,0x58,0xc6,0x61,0x29,0x62,
25    0x25,0x0e,0x4b,0x13,0x2b,0x73,0x58,0x86,0x58,0xb9,0xc3,0x8a,0x88,0x2d,0x71,0x58,
26    0x96,0xd8,0xed,0x0e,0x2b,0x26,0xb6,0xd4,0x61,0x25,0xc4,0x96,0x3b,0xec,0x26,0x62,
27    0xf7,0x38,0x6c,0x01,0xb1,0x15,0x0e,0x2b,0x25,0x56,0xe7,0xb0,0x32,0x62,0x6b,0x1c,
28    0xb6,0x90,0xd8,0x5a,0x87,0x2d,0x22,0xf6,0x20,0x78,0xd7,0x4e,0x03,0x07,0x1b,0xb4,
29    0xc3,0x16,0xd6,0x1f,0xf8,0xc9,0x25,0x78,0x84,0x7d,0x8e,0xfc,0xc0,0xbe,0x55,0x9f,
30    0x77,0xff,0xab,0x33,0xf9,0x2e,0xf2,0x0c,0x79,0x22,0x11,0x6f,0xf2,0x06,0xf1,0x26,
31    0x5d,0xbc,0x42,0x22,0x5e,0x81,0xf1,0x82,0x3c,0xc5,0xde,0x97,0x52,0x5e,0x29,0x26,
32    0xdf,0xa1,0xa3,0x52,0xbb,0x48,0xc5,0xf6,0xe9,0x38,0x1e,0xde,0x6f,0x51,0x9b,0x2c,
33    0x39,0xc6,0xef,0x56,0xd5,0x54,0x50,0x5e,0xa6,0x6f,0x61,0xbe,0xfe,0xef,0x58,0xae,
34    0xf1,0xef,0xe5,0xbc,0x21,0xd6,0x3a,0xca,0xf7,0x11,0x43,0xfe,0x15,0xcc,0x07,0x4e,
35    0x6a,0x29,0xd7,0x38,0xff,0x95,0xb4,0xcd,0x52,0x8f,0xe7,0x6a,0x72,0x16,0xec,0xeb,
36    0xd9,0x4f,0xd0,0xaf,0xe3,0xfa,0x09,0xfa,0xf5,0x09,0xb9,0x81,0xfe,0x4b,0xd4,0xeb,
37    0x29,0xe7,0xf7,0x0c,0xb9,0x86,0x0c,0x1e,0x9a,0xc8,0xcb,0x9d,0x8a,0x86,0xb9,0x5f,
38    0xc6,0x39,0x6e,0x61,0x7d,0x5b,0x99,0x3b,0xc7,0xfe,0x20,0xb7,0xba,0x7a,0x90,0x2f,
39    0xcf,0x38,0xb0,0xdf,0x46,0x5d,0xd6,0xe9,0x77,0x70,0x2d,0x86,0x3a,0xda,0x68,0x1f,
40    0xf4,0x1d,0x5c,0xe7,0x41,0xee,0x74,0x75,0x42,0xee,0xd2,0x31,0x97,0x9e,0x97,0x7b,
41    0xb8,0x8e,0x43,0xbc,0x37,0x9c,0x3f,0xe4,0xfe,0x44,0x7d,0x1f,0xc1,0x5f,0x7f,0x41,
42    0x1e,0x4a,0xcc,0xc7,0x31,0xee,0x9f,0x20,0x8f,0x72,0x4e,0x42,0xbc,0xd3,0x09,0xfb,
43    0x71,0x9e,0x03,0xb7,0xa9,0x7c,0x86,0x67,0x50,0x8a,0x3c,0x4e,0x38,0x1e,0xb1,0xb6,
44    0x27,0xc8,0xcb,0x25,0xda,0x4c,0x92,0x47,0xc8,0x05,0x62,0x88,0x73,0x99,0x7e,0x69,
45    0xda,0x5f,0x61,0xce,0xcb,0xb4,0xbf,0xc2,0x73,0x4f,0xa8,0xbf,0xca,0x77,0xcf,0x73,
46    0x8a,0xfb,0x21,0xd4,0x5d,0x23,0x76,0x36,0xd6,0xa9,0x84,0x38,0xd8,0x2f,0xc0,0x4e,
47    0xb3,0xa7,0x07,0x74,0x4f,0xa6,0xb8,0x56,0x22,0xe6,0x9e,0x51,0x04,0xe7,0xda,0xef,
48    0x2a,0xd5,0xf2,0xbc,0xfe,0x4b,0xdf,0x31,0x67,0x75,0x62,0x7a,0x3c,0x1f,0x53,0x2b,
49    0xd4,0xf0,0x0b,0xeb,0x82,0xfe,0x61,0xe6,0xfd,0x95,0x38,0x6c,0xb0,0xbe,0x7f,0xe3,
50    0x9e,0xc8,0x3b,0x9b,0x6b,0xc4,0x0f,0xab,0x0d,0xd6,0xe8,0x34,0xfd,0xae,0x31,0xf7,
51    0x0c,0x6b,0xfa,0x53,0xed,0xa7,0x63,0x2c,0x8a,0x31,0xe4,0xc7,0xfb,0x1f,0xfa,0xac,
52    0x65,0x3d,0x33,0x94,0xaf,0x53,0x7f,0x3d,0x8e,0x53,0x1c,0xe7,0x99,0x12,0xab,0x0d,
53    0x36,0x55,0xfa,0x3e,0xe7,0x74,0xe7,0x9d,0xae,0x9a,0xba,0x50,0x73,0x5a,0xac,0x66,
54    0x70,0x1a,0x6a,0xce,0x88,0xe1,0x47,0x59,0x73,0x91,0x58,0x0c,0xe0,0xd3,0x6a,0x33,
55    0x1b,0x59,0x8c,0x50,0x37,0xf4,0x7f,0xeb,0xfb,0x2c,0xeb,0xc2,0xfb,0xeb,0xea,0x8b,
56    0x58,0xa5,0x62,0xfd,0xc2,0xb7,0x97,0xd8,0x42,0x31,0xfc,0xbc,0xcc,0xd7,0xb1,0x98,
57    0x75,0x0c,0x39,0xee,0xca,0xc5,0xf0,0xc0,0x5d,0x85,0x98,0x2f,0x70,0x70,0x57,0x29,
58    0xf3,0x35,0x40,0x77,0xb3,0x8e,0x4a,0x72,0x85,0x77,0x70,0x15,0x6a,0xaa,0xa4,0xcf,
59    0x60,0x62,0xae,0x37,0xd2,0x7e,0xa3,0xab,0xe5,0x09,0xd6,0xb2,0xde,0xd5,0xd2,0x20,
60    0x86,0xbf,0xc9,0x1e,0x9e,0x64,0x2d,0xc0,0xdf,0x22,0xd6,0xe8,0xb0,0x10,0x6b,0x13,
61    0x63,0x35,0xb8,0x58,0x9b,0xc5,0xf0,0xd0,0xd7,0xb3,0x62,0xbe,0x9b,0x1d,0xe7,0x4d,
62    0xc4,0x70,0x96,0x7d,0x4c,0xec,0x39,0x31,0xdb,0x26,0xf6,0xd2,0xec,0xfa,0x87,0x6e,
63    0x8b,0x8e,0x66,0xf6,0xb3,0x85,0xfd,0x0f,0x52,0x6e,0x76,0x35,0x7d,0xc2,0x9a,0x6a,
64    0x5c,0x4d,0xc3,0x62,0x78,0x98,0xb7,0x83,0x62,0x3d,0x0e,0x3b,0xec,0x10,0x6b,0xc2,
65    0xb9,0x1d,0xe6,0xf2,0x33,0x31,0xdb,0x43,0x2e,0xfe,0x61,0xc6,0xaf,0x77,0xf1,0x8f,
66    0x88,0xe1,0xc1,0xef,0xa8,0x98,0xef,0x11,0xc7,0xe9,0xf3,0x62,0xf8,0xea,0x78,0x7d,
67    0x66,0xe3,0x33,0xb6,0x45,0xec,0x1c,0xce,0x53,0x1f,0xe2,0xe5,0xc4,0x74,0x21,0xe7,
68    0x56,0xe6,0xdc,0xe1,0x72,0xb6,0x8a,0xe1,0x9f,0x92,0xbf,0xbc,0x18,0xd6,0xc6,0xbd,
69    0xd7,0xe7,0xf8,0x83,0xee,0x05,0x1d,0x7b,0xc9,0xd7,0x5e,0x37,0xaf,0x9f,0xbb,0xba,
70    0x02,0x17,0x5f,0x88,0xe1,0xb8,0xa3,0xba,0x99,0xef,0x6d,0xb1,0x33,0x18,0xbc,0xf7,
71    0x31,0x0e,0x62,0x1e,0x64,0xfe,0x6d,0x6e,0x4e,0x87,0xd5,0x03,0x67,0xd9,0x8b,0x62,
72    0x78,0x3d,0xef,0x87,0x10,0x6b,0xbb,0x98,0x2e,0xd8,0xbd,0x44,0xbb,0x4e,0xde,0x13,
73    0xc1,0xae,0x4d,0x4c,0x17,0x78,0xd8,0x49,0x1e,0x7a,0x1c,0x0f,0x2f,0x8b,0xe1,0x81,
74    0x87,0x57,0xc4,0xb0,0xc0,0x43,0xaf,0xe3,0x01,0xba,0x5d,0x3a,0x3a,0x58,0x7f,0x07,
75    0xd7,0x5a,0x8f,0xb3,0x41,0x1d,0xbb,0x75,0xec,0xa1,0x0d,0x9e,0xaf,0x91,0x97,0x2e,
76    0xb1,0x7b,0xa9,0xd1,0xad,0x9b,0x6e,0xb1,0x7e,0xba,0xdc,0xfc,0xbf,0x2a,0x86,0xf7,
77    0x93,0xaf,0x1e,0xc6,0xda,0x2d,0xff,0x95,0xf1,0x0c,0xe7,0xd8,0x4f,0x62,0x7e,0x7b,
78    0x58,0x7b,0xb0,0xed,0xa5,0xed,0x2e,0x97,0xb3,0x5d,0xec,0xbe,0x6c,0x4c,0xd8,0xf4,
79    0xba,0x78,0x17,0xc4,0x62,0x22,0x47,0x3b,0xfb,0xf6,0x73,0xd7,0xe7,0x6c,0x2f,0x8a,
80    0xcd,0x2f,0xd6,0x05,0x38,0xf7,0x71,0x7e,0x16,0x5b,0x0f,0xd0,0x5d,0xa0,0x2e,0xcc,
81    0xf9,0xbe,0x1b,0xec,0xe3,0x77,0xb8,0x8f,0xf7,0x91,0xdb,0x01,0xc7,0x2d,0x74,0xfb,
82    0x75,0xbc,0xc7,0x1a,0xf0,0x1c,0x61,0x4f,0xef,0x8b,0xad,0x7b,0xe4,0x1b,0x23,0xf6,
83    0x81,0x18,0x7e,0x91,0xb5,0x0f,0xd0,0x6f,0xbf,0x5b,0x13,0xef,0x72,0x4d,0x1c,0x73,
84    0x6b,0xe2,0x80,0x18,0xee,0x7d,0x06,0x5c,0x4f,0x93,0x62,0xb1,0x91,0xff,0x00,0x6b,
85    0xea,0xe6,0xf7,0xd4,0x87,0x62,0x7a,0x7f,0xbe,0x0c,0xd2,0x17,0xfa,0x4b,0x62,0xdf,
86    0x5c,0x38,0x83,0x60,0x3b,0xe0,0x6a,0xf9,0x92,0xb5,0x8c,0xba,0x5a,0xbe,0x12,0xc3,
87    0x03,0x67,0x5f,0x8b,0x61,0xfd,0x5c,0x9f,0xe3,0x8e,0x1f,0xe8,0x46,0x74,0x9c,0x62,
88    0xde,0x53,0xac,0x0b,0x7b,0xe4,0x3b,0xb1,0xdc,0x61,0x6f,0x7c,0x2f,0x86,0xa1,0xce,
89    0x71,0xda,0x8f,0x38,0xee,0x8e,0xf3,0xbc,0xc6,0x37,0x42,0xc8,0x7d,0x42,0x0c,0x6f,
90    0x73,0x7b,0x74,0x54,0x0c,0xcf,0xf3,0x9b,0x28,0xc4,0x1f,0x13,0xd3,0x3d,0xad,0xbe,
91    0xf8,0x3e,0xfa,0x46,0xe6,0x7b,0x2f,0x53,0x0b,0xd8,0x7c,0x2b,0xf6,0xfd,0xf2,0x10,
92    0xf5,0xc7,0x99,0xfb,0xa4,0x98,0x6e,0x2c,0x51,0xdf,0xb8,0x9b,0x83,0x82,0x58,0x0f,
93    0xe8,0xf1,0x24,0xfb,0x3e,0x41,0x7f,0xdc,0xf1,0xb8,0xf3,0x0b,0xf4,0x9f,0xe3,0x3d,
94    0x37,0xe7,0xce,0xe6,0x6a,0xde,0xb1,0x43,0x89,0xef,0x86,0x59,0x77,0xff,0x9f,0xe1,
95    0x7c,0x74,0xba,0xf9,0xf8,0x41,0x0c,0x0f,0xe7,0xf2,0x59,0x31,0xcc,0x9f,0xfb,0x3f,
96    0xf2,0x5e,0x3f,0x2b,0xf3,0x67,0xf5,0x39,0xb1,0x6f,0xbd,0x3c,0xf5,0x8f,0xe8,0xdc,
97    0x9d,0x63,0x9d,0xfe,0x3b,0xa6,0x36,0xfe,0x5e,0x10,0xfd,0x6f,0x26,0xd1,0x3f,0x7d,
98    0xee,0xa5,0x37,0x38,0x0f,0x00,0x00
99};
100
101// Generated from:
102//
103// #version 450 core
104//
105// layout(local_size_x = 64, local_size_y = 1, local_size_z = 1)in;
106//
107// layout(set = 0, binding = 0)buffer dst
108// {
109//     uint destData[];
110// };
111//
112// layout(set = 0, binding = 1)buffer src
113// {
114//     uint srcData[];
115// };
116//
117// layout(push_constant)uniform PushConstants
118// {
119//
120//     uint outputCount;
121//
122//     uint componentCount;
123//
124//     uint srcOffset;
125//     uint dstOffset;
126//
127//     uint Ns;
128//     uint Bs;
129//     uint Ss;
130//     uint Es;
131//
132//     uint Nd;
133//     uint Bd;
134//     uint Sd;
135//     uint Ed;
136//
137//     uint srcEmulatedAlpha;
138//
139//     bool isSrcHDR;
140//     bool isSrcA2BGR10;
141// } params;
142//
143// uint getSourceComponentOffset(uint vertex, uint component)
144// {
145//     return vertex * params . Ss + component * 4 + params . srcOffset;
146// }
147//
148// uint getDestinationComponentOffset(uint vertex, uint component)
149// {
150//     return vertex * params . Sd + component * params . Bd + params . dstOffset;
151// }
152//
153// uint getShiftBits(uint offset, uint B)
154// {
155//
156//     uint shift =(offset % 4)* 8;
157//
158//     return shift;
159// }
160//
161//       float loadSourceComponent(uint cd)
162// {
163//
164//     uint vertex = cd / params . Nd;
165//     uint component = cd % params . Nd;
166//
167//     if(component >= params . Ns && component < 3)
168//     {
169//         return 0;
170//     }
171//
172//     uint offset = getSourceComponentOffset(vertex, component);
173//     uint block = srcData[offset / 4];
174//
175//     uint shiftBits;
176//     uint valueBits;
177//     uint valueMask;
178//
179//     if(params . isSrcHDR)
180//     {
181//         valueBits = component == 3 ? 2 : 10;
182//         valueMask = component == 3 ? 0x03 : 0x3FF;
183//         if(params . isSrcA2BGR10)
184//         {
185//             shiftBits = 10 * component;
186//         }
187//         else
188//         {
189//
190//             shiftBits = component == 3 ? 0 :(valueBits *(2 - component)+ 2);
191//         }
192//     }
193//     else
194//     {
195//         shiftBits = getShiftBits(offset, 4);
196//         valueBits = 4 * 8;
197//         valueMask = valueBits == 32 ? - 1 :(1 << valueBits)- 1;
198//     }
199//
200//     uint valueAsUint;
201//
202//     if(component >= params . Ns && component == 3)
203//     {
204//         valueAsUint = params . srcEmulatedAlpha;
205//     }
206//     else
207//     {
208//         valueAsUint =(block >> shiftBits)& valueMask;
209//     }
210//
211//           float value = uintBitsToFloat(valueAsUint);
212//
213//     return value;
214// }
215//
216//        float convertComponent(float srcValue)
217// {
218//
219//     return srcValue;
220// }
221//
222// uint makeDestinationComponent(uint cd, float value)
223// {
224//
225//     uint valueAsUint;
226//
227//     if(params . Bd == 2)
228//     {
229//
230//         uint shift =((cd & 1)== 0)? 0 : 16;
231//         valueAsUint = packHalf2x16(vec2(value, 0.0))<< shift;
232//     }
233//     else
234//     {
235//         valueAsUint = floatBitsToInt(value);
236//     }
237//
238//     return valueAsUint;
239// }
240//
241// void storeDestinationComponents(uint valueAsUint)
242// {
243//
244//     destData[gl_GlobalInvocationID . x + params . dstOffset / 4]= valueAsUint;
245// }
246//
247// void main()
248// {
249//     if(gl_GlobalInvocationID . x >= params . outputCount)
250//         return;
251//
252//     uint valueOut = 0;
253//     for(uint i = 0;i < params . Ed;++ i)
254//     {
255//         uint cd = gl_GlobalInvocationID . x * params . Ed + i;
256//         if(cd >= params . componentCount)
257//         {
258//             break;
259//         }
260//
261//               float srcValue = loadSourceComponent(cd);
262//                float destValue = convertComponent(srcValue);
263//         valueOut |= makeDestinationComponent(cd, destValue);
264//     }
265//
266//     storeDestinationComponents(valueOut);
267// }
268