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