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