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