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