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