• 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/ImageCopy.frag.0000002B.inc:
9//   Pre-generated shader for the ANGLE Vulkan back-end.
10
11#pragma once
12constexpr uint8_t kImageCopy_frag_0000002B[] = {
13    0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xed,0x4f,0xd5,0x65,
14    0x18,0xc7,0x6f,0xce,0x8f,0x73,0x0e,0x42,0x3c,0x08,0x28,0x51,0x61,0xa9,0xb0,0xd9,
15    0x30,0x38,0x15,0x19,0x41,0xba,0x61,0x86,0xae,0x2c,0x44,0x53,0x2a,0x78,0x91,0x0b,
16    0x27,0x54,0x9c,0x1e,0x38,0x6b,0xe9,0x5a,0x6b,0x8d,0x14,0xde,0xa4,0x15,0xcc,0x31,
17    0x6b,0x0a,0x5b,0xc1,0x96,0xc1,0xec,0x45,0x5b,0xaf,0x5a,0x6b,0x45,0x23,0xed,0xe1,
18    0x8f,0x69,0x3d,0x6c,0x6d,0x5d,0xd7,0x7d,0x3e,0x97,0xbb,0x3a,0xab,0xc9,0x76,0xef,
19    0xc7,0xfd,0xbd,0x9e,0xbe,0xdf,0xeb,0xba,0xef,0x1b,0x92,0xd4,0xf6,0x6c,0x08,0x65,
20    0xa1,0x32,0x54,0x84,0x5f,0x43,0xf1,0x67,0x63,0x48,0x09,0x52,0xfc,0xde,0x27,0xdf,
21    0xaa,0x90,0x89,0xfb,0xfd,0x07,0x8f,0x1c,0xec,0x98,0x2c,0x8c,0x76,0x74,0x3d,0x90,
22    0x53,0xbf,0x9a,0x90,0x44,0x7f,0xb5,0xd5,0x86,0x6c,0x28,0x97,0xaf,0xae,0x89,0xe3,
23    0xe3,0x79,0xc5,0xab,0x65,0x7d,0x21,0xab,0x4e,0xfc,0x14,0xcf,0x6a,0x0e,0xf9,0xad,
24    0x3a,0xe6,0xd4,0x98,0x10,0x0e,0x84,0x74,0x68,0xa0,0xee,0x76,0xbe,0x86,0x95,0x81,
25    0x55,0x38,0x2c,0x05,0x56,0xe7,0xb0,0x04,0xac,0xd1,0x61,0xe5,0x60,0xb7,0x3a,0x2c,
26    0x0d,0x76,0x87,0xc3,0x32,0x60,0x77,0x39,0x2c,0x0b,0xd6,0xea,0xb0,0x0a,0xb0,0x1d,
27    0x0e,0xdb,0x00,0xb6,0xd3,0x61,0x95,0x60,0x39,0x87,0x55,0x81,0x75,0x39,0xec,0x16,
28    0xb0,0x6e,0x87,0x55,0x83,0x3d,0x1c,0xfb,0x94,0xdc,0xd0,0xab,0x3d,0xdb,0x27,0xdf,
29    0x6d,0xf4,0xc7,0xf6,0x5b,0xdd,0x5e,0xfb,0xbc,0x85,0x7d,0x83,0x44,0xa5,0xa2,0x3d,
30    0x89,0xbd,0xd1,0xdf,0x37,0x89,0x4f,0x06,0x9d,0xda,0xd7,0x26,0xd9,0x67,0xd1,0xaf,
31    0xf6,0xcd,0xe2,0x59,0x89,0x5d,0x6d,0x55,0x68,0x29,0x8f,0x58,0x79,0xe4,0x5b,0x86,
32    0x96,0x5e,0xf6,0xd5,0x2e,0x57,0x0d,0xfe,0x56,0xab,0x9e,0x5c,0x21,0xf2,0xaa,0xbb,
33    0xd1,0x57,0xab,0xa9,0xab,0xfe,0x26,0xcb,0x7c,0xb4,0x7e,0x23,0xfd,0x6e,0xa0,0x7e,
34    0x63,0xac,0x53,0xc4,0xda,0xd1,0xb6,0x19,0x3e,0xea,0xdf,0x84,0x2d,0xeb,0xec,0x2d,
35    0x4e,0xcf,0x16,0xec,0xf5,0xf1,0xdc,0xa4,0x62,0x2f,0xdb,0xe1,0x6d,0x7d,0xb6,0xb8,
36    0x76,0xce,0x8e,0xd9,0xef,0xa5,0x8e,0xd9,0x77,0xd1,0x0b,0xed,0xc3,0x1e,0x72,0x6a,
37    0x9d,0x66,0xa9,0xd0,0xc7,0xbe,0x2c,0xfc,0xfb,0xc7,0xf6,0xb7,0x4b,0xdf,0xf7,0xca,
38    0xb7,0x0f,0x5e,0x8f,0x80,0xef,0x45,0xa7,0xee,0xf7,0x95,0xf0,0xe9,0x2f,0xd9,0x0f,
39    0xd2,0x77,0x8d,0x3f,0x8c,0xae,0x8c,0xb3,0x0f,0xb1,0x57,0x7e,0xc7,0xe1,0x93,0x38,
40    0xfb,0x78,0x49,0x9f,0xa6,0x38,0xef,0xb6,0x3f,0x5f,0xd2,0xe7,0x8b,0x9c,0x5f,0xad,
41    0x77,0x95,0x5c,0x7b,0xe0,0x7b,0x95,0x3b,0x9f,0xc4,0xbe,0xa4,0x23,0xaf,0x72,0xf8,
42    0x2a,0xf6,0x87,0x20,0xda,0xcb,0xdd,0x9c,0xb1,0x5a,0x7a,0x37,0x20,0x0c,0x6a,0xb8,
43    0xd7,0xb5,0x2c,0xeb,0x53,0x9e,0xb3,0xba,0x11,0x7b,0x9f,0x64,0x68,0xe2,0x6e,0x6f,
44    0x62,0xee,0xbb,0xf1,0x69,0x06,0x7f,0x47,0x7c,0x74,0x7f,0x1b,0x71,0xcd,0xc4,0xe9,
45    0xdc,0xef,0x24,0xae,0x85,0x38,0x3b,0xab,0x8a,0x7f,0x26,0x3e,0x5b,0xdd,0x9b,0xa0,
46    0x67,0xe1,0x77,0x61,0xde,0x06,0x9f,0xbf,0xc4,0xdf,0xde,0x86,0x36,0xf4,0xb4,0xc6,
47    0x19,0xa4,0x63,0x6f,0x76,0x50,0x53,0x7f,0xde,0xa2,0x5f,0x77,0x83,0x1f,0x96,0x9d,
48    0x72,0xfa,0x12,0xcc,0xfc,0xfe,0x94,0x1c,0x96,0x4b,0xbf,0xbf,0x89,0x97,0xfa,0x7d,
49    0x8f,0x4f,0x9a,0x98,0x56,0xa7,0x61,0x27,0x1a,0xda,0x9d,0x86,0x7b,0xc0,0x4d,0x43,
50    0x07,0x98,0x69,0xc8,0x39,0x0d,0x6a,0xeb,0xe4,0x9d,0xd2,0xba,0x9d,0x4e,0xc3,0xfd,
51    0xd4,0x2e,0x73,0x1a,0xba,0xc0,0x4d,0xc3,0x57,0x60,0xe6,0xa7,0x1a,0x2c,0x57,0xce,
52    0x69,0x58,0xc3,0xa7,0x8d,0x98,0x4e,0xa7,0xe1,0x41,0x34,0xec,0x72,0x1a,0xba,0xc1,
53    0x4d,0xc3,0x43,0x60,0xa6,0xa1,0xd7,0x69,0x50,0x5b,0x4f,0x3c,0x77,0xc5,0xba,0x3d,
54    0x9c,0xa3,0x6c,0xcc,0x57,0xac,0xbd,0xe6,0xee,0x9a,0x72,0x34,0xdf,0x5e,0xc7,0xf1,
55    0x07,0xfc,0x72,0xc4,0xf5,0xc0,0x47,0xef,0xe0,0xa3,0xdc,0x3f,0x3b,0x73,0xfb,0xe1,
56    0xdc,0xef,0xce,0xdc,0x01,0xf0,0xb7,0x39,0x73,0x8f,0x81,0x69,0xde,0x97,0x79,0x1b,
57    0x1f,0x07,0x1f,0x95,0xbd,0xde,0xf5,0x27,0xc8,0x7d,0x92,0x98,0x27,0xc1,0xfa,0x5d,
58    0xcc,0x00,0xf8,0xb4,0xf8,0xe8,0xfe,0x10,0x79,0x06,0xe0,0xa3,0x77,0xfd,0x08,0x7c,
59    0x06,0xe1,0xa3,0xb3,0x7a,0x0a,0x5c,0xf3,0xe8,0x9b,0x7c,0x14,0x6c,0x48,0x2a,0xe9,
60    0x3d,0x3d,0x46,0xed,0x43,0xf4,0xe6,0xa8,0x9b,0xc9,0xd3,0xe4,0x1b,0x72,0x33,0x79,
61    0x06,0xdc,0x66,0xf2,0x2c,0x98,0xcd,0x64,0xc4,0xcd,0x44,0x6d,0xc3,0xb2,0xc6,0xe8,
62    0xf3,0x30,0xe7,0x4a,0xf3,0x3c,0x47,0xed,0x24,0x6a,0xa8,0x88,0x6f,0xd1,0xf3,0x60,
63    0xc7,0xdc,0x7d,0x4f,0x45,0x6e,0x99,0x68,0x1f,0x25,0xce,0xd6,0x94,0xe4,0x52,0xfc,
64    0x04,0xb1,0xa3,0x31,0xd7,0x86,0xa8,0xeb,0x24,0x79,0x4e,0xf0,0xe6,0xa4,0x79,0xf7,
65    0x12,0x66,0x3f,0x02,0xa7,0x31,0xa7,0xf7,0x05,0xf4,0x8e,0x3b,0xbd,0x2f,0x82,0x9b,
66    0xde,0x97,0xc0,0x4c,0x6f,0xde,0xe9,0x55,0xdb,0x44,0x7c,0xa3,0x8a,0xb9,0x27,0x9c,
67    0xde,0x57,0x9c,0xde,0x2b,0xe4,0x7a,0x15,0x7c,0x1b,0x9c,0x2c,0x2e,0xcf,0x79,0x54,
68    0x9f,0xd7,0xa8,0x39,0x86,0xff,0x04,0x75,0x0b,0xae,0xae,0xfa,0x4c,0xca,0x2a,0x10,
69    0x3f,0xe9,0xea,0xbe,0xfe,0x1f,0x7d,0x7e,0xe3,0x26,0x7d,0x3e,0x45,0x9c,0xad,0x33,
70    0xf4,0xf9,0x34,0xb1,0xa7,0x5c,0x9f,0xdf,0x24,0xcf,0xe9,0xff,0xe9,0xb3,0x71,0x2a,
71    0xa0,0x49,0x63,0x7e,0x24,0x26,0x4f,0xfc,0x64,0xc9,0x4c,0x46,0x9c,0xef,0x3a,0xb3,
72    0x1c,0x26,0xae,0xe0,0xe6,0xf5,0x2e,0xf3,0x9a,0x72,0xf3,0x3a,0x03,0x6e,0xf3,0x3a,
73    0x0b,0x66,0xf3,0x9a,0x71,0x7d,0x3b,0x1b,0xef,0x53,0x08,0xe7,0xa8,0x3b,0xed,0x74,
74    0xbd,0x47,0xed,0x75,0x74,0x65,0xe9,0x91,0xe9,0x9a,0x21,0xe6,0x9c,0xe3,0xf3,0x3e,
75    0x7c,0xce,0x3b,0x3e,0x1f,0x80,0x1b,0x9f,0x0f,0xc1,0x8c,0xcf,0x9c,0xe3,0xa3,0xb6,
76    0x59,0x59,0xf3,0xe4,0x9e,0x75,0x73,0xbc,0x00,0x97,0x84,0x77,0x57,0x39,0x7e,0xed,
77    0x70,0x7b,0xd3,0xe6,0x88,0x9d,0x77,0xef,0xc2,0x47,0xf0,0xba,0xe8,0xde,0x85,0x8f,
78    0xc1,0xd7,0x78,0xe7,0x2f,0x81,0x0d,0x3a,0xae,0x97,0xc1,0xfb,0xe1,0xba,0xe8,0xb8,
79    0xaa,0x6d,0x41,0xd6,0x22,0xf5,0x16,0x1c,0xaf,0x6f,0xd0,0xb7,0xee,0xfe,0x1e,0x98,
80    0xdf,0xa2,0x9b,0xed,0x35,0x7c,0xe6,0x89,0x59,0x70,0x7c,0x3e,0x81,0x4f,0x8b,0xe3,
81    0xf3,0x29,0xb8,0xf1,0x59,0x76,0x7c,0xd4,0xb6,0x24,0x6b,0x99,0x3a,0x4b,0x8e,0xcf,
82    0xb7,0xf0,0xb9,0xc6,0x0c,0x95,0x8f,0xf9,0x2d,0x3b,0x3e,0xd7,0xf1,0x59,0x24,0x66,
83    0xc9,0xf1,0xb9,0x02,0x9f,0x29,0xc7,0xe7,0x73,0x70,0xe3,0xb3,0xea,0xf8,0xa8,0x6d,
84    0x45,0xd6,0x2a,0x75,0x56,0x1c,0x9f,0xef,0xf8,0xbf,0xf1,0xba,0x3b,0x4f,0xe6,0xb7,
85    0xea,0xf8,0xfc,0x82,0xcf,0x32,0x31,0x2b,0x25,0x33,0x9e,0x73,0xbe,0x3f,0x73,0x1e,
86    0x66,0x89,0x5b,0x2d,0x39,0xa7,0x33,0xce,0xf7,0x27,0xce,0xf7,0x34,0x71,0x73,0xf1,
87    0x7f,0xb6,0x24,0xfe,0xaf,0xa6,0xb6,0xbf,0x65,0x6a,0xdd,0xb2,0xfe,0x01,0x5a,0x6c,
88    0x1f,0x83,0x10,0x0e,0x00,0x00
89};
90
91// Generated from:
92//
93// #version 450 core
94//
95// #extension GL_EXT_samplerless_texture_functions : require
96//
97// layout(set = 0, binding = 0)uniform usampler2D src;
98// layout(location = 0)out uvec4 dst;
99//
100// layout(push_constant)uniform PushConstants {
101//
102//     ivec2 srcOffset;
103//     ivec2 dstOffset;
104//     int srcMip;
105//     int srcLayer;
106//
107//     bool flipX;
108//     bool flipY;
109//
110//     bool premultiplyAlpha;
111//     bool unmultiplyAlpha;
112//
113//     bool dstHasLuminance;
114//     bool dstIsAlpha;
115//
116//     bool srcIsSRGB;
117//     bool dstIsSRGB;
118//
119//     int dstDefaultChannelsMask;
120//     bool rotateXY;
121// } params;
122//
123// void main()
124// {
125//     ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset;
126//
127//     ivec2 srcSubImageCoords = dstSubImageCoords;
128//
129//     if(params . flipX)
130//     {
131//         srcSubImageCoords . x = - srcSubImageCoords . x;
132//     }
133//     if(params . flipY)
134//     {
135//         srcSubImageCoords . y = - srcSubImageCoords . y;
136//     }
137//     if(params . rotateXY)
138//     {
139//         srcSubImageCoords . xy = srcSubImageCoords . yx;
140//     }
141//
142//           uvec4 srcValue = texture(
143//         src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip);
144//
145//     if(params . premultiplyAlpha)
146//     {
147//         srcValue . rgb *= srcValue . a;
148//     }
149//     else if(params . unmultiplyAlpha && srcValue . a > 0)
150//     {
151//         srcValue . rgb /= srcValue . a;
152//     }
153//
154//            uvec4 dstValue = uvec4(srcValue);
155//
156//     if(params . dstHasLuminance)
157//     {
158//         dstValue . rg = dstValue . ra;
159//     }
160//     else if(params . dstIsAlpha)
161//     {
162//         dstValue . r = dstValue . a;
163//     }
164//     else
165//     {
166//         int defaultChannelsMask = params . dstDefaultChannelsMask;
167//         if((defaultChannelsMask & 2)!= 0)
168//         {
169//             dstValue . g = 0;
170//         }
171//         if((defaultChannelsMask & 4)!= 0)
172//         {
173//             dstValue . b = 0;
174//         }
175//         if((defaultChannelsMask & 8)!= 0)
176//         {
177//             dstValue . a = 1;
178//         }
179//     }
180//
181//     dst = dstValue;
182// }
183