• 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.00000020.inc:
9//   Pre-generated shader for the ANGLE Vulkan back-end.
10
11#pragma once
12constexpr uint8_t kImageCopy_frag_00000020[] = {
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,0x6e,0xcf,0x79,0xde,0xcb,0xef,0xa7,0x19,0xa1,0x28,0x27,0x49,0x24,0xc9,
20    0x4d,0x1a,0x25,0x4b,0x42,0xd2,0xf0,0x69,0x91,0x84,0x88,0x24,0x49,0x93,0x24,0xbb,
21    0xe1,0xbb,0x72,0xcc,0xa4,0x31,0xbd,0x56,0xac,0x9c,0xdb,0xab,0xff,0x80,0x3e,0xb0,
22    0x37,0x4f,0x32,0x1a,0xfc,0x60,0xcb,0x4b,0x72,0x92,0xcc,0xf8,0x8d,0xb1,0xb4,0x6a,
23    0x51,0x35,0xf0,0xfa,0x38,0xda,0x44,0x63,0x7e,0xf4,0x03,0x1e,0x0b,0x24,0xcf,0x26,
24    0x59,0xc9,0x08,0x4d,0x9f,0x14,0xf1,0xdb,0x30,0x21,0xd6,0xc8,0x61,0x81,0x58,0xbe,
25    0xc3,0x32,0x88,0xb5,0x76,0x58,0x26,0xb1,0x76,0x0e,0xcb,0x22,0xf6,0xb8,0xc3,0xb2,
26    0x89,0x75,0x72,0x58,0x0e,0xb1,0xae,0x0e,0x6b,0x44,0xac,0xbb,0xc3,0x1a,0x13,0xeb,
27    0xe9,0xb0,0x5c,0x62,0x7d,0x1c,0xd6,0x84,0x58,0x7f,0x87,0x35,0x25,0x36,0xc8,0x61,
28    0xcd,0x88,0x0d,0x71,0x58,0x73,0x62,0xc3,0xa1,0x77,0xec,0xd4,0x34,0xa8,0x8c,0x1d,
29    0xd6,0x33,0x77,0x1e,0xe7,0x99,0x51,0xb0,0x2e,0xd4,0xd0,0xe6,0x9d,0xdd,0x1c,0xda,
30    0x77,0xe0,0xbc,0x55,0xcc,0x82,0x3c,0x9d,0x63,0xce,0x0c,0xe6,0x2c,0x88,0xbf,0xb2,
31    0xa9,0x45,0x9b,0xe8,0x9f,0xc7,0xdf,0x58,0x87,0xb6,0x71,0x9e,0xcf,0x5a,0x81,0xf3,
32    0x02,0xea,0x07,0xad,0x8b,0xe3,0xbf,0xf8,0xdd,0x1e,0xfa,0xf6,0x7a,0xbe,0xa4,0x75,
33    0xf4,0xea,0xe0,0x70,0xf4,0x30,0xf1,0xcb,0xb1,0x65,0x36,0x87,0x8e,0x53,0xa6,0xfc,
34    0x58,0x6a,0xf3,0x1e,0x71,0x0c,0xcd,0x7d,0x7b,0x98,0xcd,0xa1,0xe9,0x81,0xca,0xaa,
35    0xa1,0x36,0xef,0x1b,0xc7,0xaf,0x07,0xba,0x3d,0x98,0x43,0xa3,0x9d,0x3b,0x0a,0x87,
36    0x83,0x67,0x39,0x79,0xe2,0xd3,0x21,0xee,0xd2,0x11,0xdc,0x1f,0xc6,0xd7,0x46,0xf9,
37    0xff,0x0c,0xf3,0xe9,0x14,0x73,0x56,0x70,0x7d,0x91,0xab,0x84,0xf3,0x91,0xc4,0x8a,
38    0xa9,0xcd,0x28,0x6a,0x03,0xff,0x4a,0xda,0xf2,0x9d,0x7d,0x34,0xf7,0x1c,0xec,0x63,
39    0x68,0x2f,0xa7,0x1d,0xdf,0xe3,0xc8,0xd9,0xfc,0xa7,0x51,0x4f,0x9b,0xcf,0xe1,0xfa,
40    0xdb,0xbc,0x9a,0xeb,0x6d,0xf3,0x8d,0xdc,0xab,0x58,0x8b,0x2d,0x8c,0xcd,0x70,0xf6,
41    0x6d,0xdc,0xb7,0xa6,0x59,0x4d,0x5a,0xbd,0x43,0xdc,0x87,0x36,0x3f,0x4d,0x8e,0xc8,
42    0x77,0x8e,0xf9,0x82,0xb3,0x9f,0xe7,0xfe,0xb6,0xf9,0x25,0xee,0x59,0xf4,0x77,0x99,
43    0xb1,0x79,0xce,0x7e,0x25,0x2d,0xbe,0x36,0xad,0xfe,0xb5,0xb4,0xbd,0x73,0xab,0xc1,
44    0xba,0x6e,0x18,0xf2,0xdd,0xa1,0xb6,0x05,0xd4,0xff,0x0e,0xef,0x0f,0x60,0x85,0xb1,
45    0x52,0x90,0x14,0x3f,0xff,0x11,0x7e,0x23,0x47,0x06,0x27,0xf0,0x2d,0xe1,0x3c,0x53,
46    0x1e,0xe6,0x90,0x2b,0xaa,0x19,0x7a,0x6e,0x26,0xca,0x3f,0x83,0xf1,0xad,0x69,0x33,
47    0x0e,0x98,0xb7,0x91,0x94,0xc6,0xa8,0x3f,0x21,0x12,0x58,0xb6,0xf7,0xe5,0x07,0xfb,
48    0x76,0x62,0x9c,0x6f,0xdd,0xf0,0xe1,0xd0,0x81,0x71,0xe5,0x03,0xfb,0x4b,0x98,0xf3,
49    0x76,0x44,0xb0,0x1f,0x86,0xf2,0xec,0xdc,0x65,0x4f,0xe3,0xe2,0x2a,0x42,0xef,0x7b,
50    0xc4,0xee,0xba,0x5e,0xaa,0x79,0xee,0xee,0xd3,0x5e,0x16,0x33,0x60,0xaf,0xf5,0x10,
51    0xdd,0x8f,0xa3,0x98,0xaf,0x61,0xdf,0x89,0xe2,0x6f,0x46,0x1f,0xcc,0x7b,0x8a,0xc6,
52    0x01,0x47,0x1c,0xf6,0xe0,0x53,0x8c,0x1b,0xcd,0x38,0xec,0xc3,0x5e,0xa2,0xf8,0xfe,
53    0xe8,0x83,0x33,0xdb,0x5b,0x14,0xc3,0xfe,0xfc,0x2b,0x32,0x1f,0x40,0xcd,0xee,0x44,
54    0x7f,0xd8,0xfa,0xc4,0x01,0x0c,0xfd,0xe0,0xf7,0x84,0x18,0x07,0xdd,0xfa,0x89,0xd6,
55    0xc4,0xe7,0x0d,0xea,0xfb,0xb4,0x28,0x3e,0x31,0xaa,0x03,0x4e,0xbd,0x83,0x62,0xe6,
56    0xf7,0x77,0xcc,0x61,0xb9,0xf0,0x5d,0x17,0xb5,0x80,0xdf,0xa4,0xa0,0x3e,0x59,0x8c,
57    0xe9,0xe3,0x7a,0x18,0xc8,0x1e,0xa6,0xb9,0x1e,0x9e,0x11,0xc5,0xad,0x87,0x41,0xa2,
58    0x98,0xf5,0x50,0xea,0x7a,0x80,0x6d,0x70,0x1c,0xa5,0xac,0x3b,0xd8,0xf5,0x50,0x22,
59    0x5a,0x5b,0x5c,0x0f,0x43,0x44,0x71,0xeb,0xa1,0x5f,0x50,0xcc,0xfc,0xd0,0x83,0xe5,
60    0x2a,0x75,0x3d,0x4c,0x0e,0xea,0x83,0xbe,0x10,0x33,0xd8,0xf5,0x30,0x8c,0x3d,0xcc,
61    0x71,0x3d,0x0c,0x17,0xc5,0xad,0x87,0x32,0x51,0xcc,0x7a,0x18,0xe9,0x7a,0x80,0xad,
62    0x1c,0x39,0x58,0xb7,0x5c,0x74,0x1f,0xa1,0x6e,0x85,0x68,0xed,0xc9,0x21,0x75,0x1e,
63    0xc0,0xd1,0x7c,0x47,0x3a,0x8e,0x53,0xe8,0x07,0xde,0x15,0xcc,0x09,0x3e,0x38,0x33,
64    0x59,0x3c,0x2f,0xb6,0xe7,0xb2,0xc9,0xb9,0xd6,0xed,0xb9,0x1c,0x51,0x7c,0x1d,0xf7,
65    0x5c,0x63,0x51,0x0c,0x79,0x11,0x87,0x7b,0xa1,0x09,0xe3,0x72,0x99,0x1b,0x9a,0x36,
66    0x15,0xc5,0x4d,0xf7,0xe6,0xa2,0xb1,0xf8,0x18,0x96,0x47,0x0c,0xf0,0xf8,0xa8,0x3d,
67    0xce,0x67,0xbe,0xa8,0x2f,0x6c,0x4d,0x25,0x55,0xa3,0x05,0x6b,0x5c,0x49,0x52,0x35,
68    0x5a,0x8a,0xe2,0xb3,0x62,0xaf,0x38,0x6f,0xad,0xd8,0x13,0x72,0x04,0xda,0x6d,0x3d,
69    0x26,0x30,0xbe,0xda,0xad,0xc7,0x44,0x51,0xdc,0xd6,0x63,0x92,0x28,0x66,0xeb,0x51,
70    0xe5,0xd6,0x03,0xb6,0xc9,0x71,0x54,0x51,0xe3,0xc9,0xec,0x0d,0x77,0xc2,0x54,0xd1,
71    0xda,0x09,0xe3,0xce,0xf3,0x77,0x7d,0xfc,0x8d,0x5c,0xa7,0x19,0x83,0xef,0xaf,0x59,
72    0xeb,0x8c,0x68,0x5c,0x7b,0xc6,0xfc,0xe0,0x6a,0xc1,0xf6,0x4d,0x1c,0xe7,0x18,0x87,
73    0xef,0xa6,0xb1,0x47,0xd4,0xfa,0x96,0x7a,0x3d,0xc6,0xba,0x78,0xce,0xbe,0x45,0x1e,
74    0xdf,0x89,0xda,0xf1,0xac,0xdd,0x40,0xec,0x7b,0x51,0xbc,0x27,0xf7,0xc8,0x79,0xe6,
75    0x44,0x7e,0x8b,0x3b,0x4b,0x2e,0x45,0x69,0x3e,0xe0,0xf4,0x4f,0xac,0x76,0x9b,0x58,
76    0x1d,0x39,0x4c,0x0d,0x9a,0x17,0xbc,0xce,0x92,0x2b,0xce,0x0e,0xd6,0x60,0x40,0x50,
77    0x7b,0x2b,0xb7,0xd6,0x88,0x99,0x4e,0x8d,0x84,0xfd,0xd6,0xa6,0x69,0x74,0x81,0x35,
78    0x2f,0x38,0x8d,0x7e,0x12,0x8d,0x33,0x8d,0xae,0x3a,0x8d,0x60,0xbb,0x18,0xc7,0x65,
79    0xc6,0x5d,0x76,0x1a,0xfd,0xec,0x34,0x9a,0x9e,0xa6,0xd1,0x2f,0xa2,0x76,0xaf,0xd1,
80    0x15,0x51,0xdc,0x34,0xaa,0x65,0xce,0x8b,0x4e,0xa3,0x4b,0xe4,0x52,0x94,0xe6,0x73,
81    0xd5,0x69,0x54,0xeb,0x34,0x9a,0x16,0x34,0x2f,0x78,0x5d,0x22,0x57,0xd3,0x68,0x50,
82    0x50,0xfb,0x00,0x9e,0x5f,0xd3,0x68,0x26,0x35,0x0a,0xec,0xb7,0x2e,0x4d,0xa3,0x6b,
83    0xac,0x79,0xcd,0x69,0xf4,0x9b,0x68,0x9c,0x69,0x74,0xcb,0x69,0x04,0xdb,0xf5,0x38,
84    0x6e,0x32,0xee,0xa6,0xd3,0xe8,0x77,0xa7,0xd1,0xcc,0x34,0x8d,0xfe,0x10,0xb5,0x7b,
85    0x8d,0xfe,0x14,0xc5,0x4d,0xa3,0x3a,0xe6,0xbc,0xee,0x34,0xba,0x41,0x2e,0x45,0x69,
86    0x3e,0xb7,0x9c,0x46,0x75,0x4e,0xa3,0xe9,0x41,0xf3,0x82,0xd7,0x0d,0x72,0x35,0x8d,
87    0x4a,0x82,0xda,0xa1,0x55,0x60,0x3e,0x3b,0x7b,0x55,0xcc,0x01,0xbf,0x19,0xdc,0x6b,
88    0xb8,0xf3,0x10,0x53,0xe7,0xce,0xfc,0x6c,0x9e,0xf9,0x8d,0xee,0xcc,0xcf,0x11,0xc5,
89    0xed,0xcc,0xcf,0x15,0xc5,0xec,0xcc,0xaf,0x77,0xfa,0xc1,0x36,0x2f,0x8e,0xa5,0xac,
90    0xbb,0xd4,0xe5,0xae,0x66,0xee,0x6d,0x2e,0xf7,0x32,0x51,0xdc,0x72,0xbf,0x24,0x8a,
91    0x59,0xee,0x55,0x2e,0x37,0x6c,0xcb,0xe3,0x58,0xc5,0xdc,0xcb,0xdd,0x7d,0xb2,0x42,
92    0xb4,0x2f,0xbc,0x53,0x1c,0x63,0xae,0x95,0xa2,0x78,0x0d,0xb5,0xb0,0xb8,0x55,0xd4,
93    0x02,0x3e,0xaf,0x88,0xd6,0x04,0xcf,0x95,0xcc,0x8f,0xba,0xeb,0x5c,0x5d,0xf8,0xac,
94    0xc6,0x7d,0xce,0xf8,0xd5,0xae,0xee,0xab,0xae,0xee,0xb8,0xf8,0x66,0x89,0x77,0xce,
95    0xd7,0x88,0xcd,0x08,0xa9,0x77,0x96,0xc0,0xfb,0x1a,0xf6,0x35,0xa2,0x71,0x36,0x36,
96    0xc5,0x5c,0xc0,0x5f,0x17,0x8d,0x5d,0xd3,0xd0,0x7f,0xe3,0x86,0xb5,0x5a,0xcb,0x5c,
97    0xb0,0x65,0xf2,0xdd,0xd9,0xde,0x69,0xd1,0x93,0x71,0x5a,0xe7,0xd6,0x77,0x16,0x6b,
98    0xa3,0xcf,0xb5,0xe4,0x0e,0xdf,0xf5,0xf4,0x9d,0xe7,0xf8,0x2f,0xf8,0x0f,0xfe,0x8b,
99    0x1e,0xc1,0xff,0x3d,0xf2,0x5c,0x2c,0xea,0xb3,0xc0,0xf1,0x5c,0xc2,0x98,0xc5,0x8f,
100    0xe0,0x69,0xb5,0xd7,0x3b,0x9e,0x33,0x83,0x72,0x05,0xf7,0x25,0xdc,0x37,0xb6,0x57,
101    0x36,0x71,0xaf,0x1c,0x72,0x7b,0xe5,0x1d,0x51,0xdc,0xf6,0xca,0xbb,0xa2,0x98,0xed,
102    0x95,0xed,0x6e,0xcd,0x60,0xdb,0x1c,0xc7,0x76,0xd6,0xdd,0xec,0x7a,0xde,0x22,0x5a,
103    0xdb,0x9e,0x3d,0x39,0xe1,0xe1,0x3b,0xa3,0x9e,0x31,0xf5,0xee,0xce,0xb8,0x27,0x1a,
104    0xd7,0x97,0x31,0xd9,0x21,0x55,0x0b,0xb6,0xfb,0xb8,0x1b,0x82,0xc6,0xe1,0x7b,0x3d,
105    0x6b,0x65,0x04,0x8d,0xeb,0xe9,0xee,0x8a,0xcc,0xa0,0x38,0xde,0x93,0xed,0x6e,0xc9,
106    0x0a,0xa9,0xbb,0x05,0xf6,0x21,0xd4,0x2d,0x87,0x39,0xef,0xbb,0x3b,0x23,0x61,0x4e,
107    0xbc,0x57,0x7b,0x1f,0x70,0xb2,0x3b,0x03,0x98,0xdd,0x19,0x2f,0x04,0xe6,0x0f,0x1a,
108    0x7b,0xdf,0xdd,0x19,0x65,0x41,0xed,0xa6,0x87,0x69,0xb4,0x95,0x1a,0xd9,0xb3,0xa7,
109    0x30,0x4d,0xa3,0x66,0xac,0x89,0x6f,0xd3,0x28,0x2f,0x68,0x9c,0x69,0xd4,0xce,0x69,
110    0x04,0x5b,0x3e,0xee,0x1d,0xc6,0xb5,0x72,0x1a,0xb5,0x61,0x9c,0xd7,0xa8,0x20,0x28,
111    0xee,0x35,0x6a,0xeb,0x34,0x2a,0x70,0x1a,0x15,0x32,0x27,0xf2,0x5b,0x7c,0x4b,0xe6,
112    0x34,0x8d,0xcc,0xa7,0x9d,0xd3,0xa8,0xd0,0x69,0x34,0x3b,0x68,0x7e,0xf0,0x6a,0x49,
113    0xae,0xa6,0x51,0x45,0x50,0x7b,0x59,0xda,0xb3,0xe7,0x7d,0x6a,0x64,0xcf,0x9e,0xe2,
114    0x34,0x8d,0x3a,0xb2,0x66,0x47,0xa7,0x51,0xe7,0xa0,0x71,0xa6,0x51,0x0f,0xa7,0x11,
115    0x6c,0x5d,0xe2,0xe8,0xc6,0xb8,0x6e,0x4e,0xa3,0x27,0x18,0xe7,0x35,0xea,0x1e,0x14,
116    0xf7,0x1a,0x3d,0xe9,0x34,0xea,0xee,0x34,0x2a,0x66,0xce,0x2e,0x4e,0xa3,0xae,0xcc,
117    0x69,0x1a,0x99,0x4f,0x0f,0xa7,0x51,0xb1,0xd3,0x68,0x6e,0xd0,0xfc,0xe0,0xd5,0x95,
118    0x5c,0x4d,0xa3,0xca,0xa0,0xf6,0x0a,0xf7,0xec,0xb1,0xb3,0xb7,0xdd,0x9d,0xf9,0xf9,
119    0xdc,0x6b,0xb8,0x07,0x10,0x53,0x1c,0x52,0x67,0x7e,0x07,0xcf,0xfc,0x69,0x77,0xe6,
120    0x77,0x8a,0xe2,0x76,0xe6,0x3f,0x10,0xc5,0xec,0xcc,0x9f,0x72,0x67,0x1e,0xb6,0x9a,
121    0x38,0x76,0xb3,0xee,0x6e,0x77,0x9f,0x7c,0xc4,0xdc,0xe7,0x5d,0xee,0x8f,0x45,0x71,
122    0xcb,0xfd,0x89,0x28,0x66,0xb9,0x4f,0xba,0xdc,0xb0,0xed,0x89,0x63,0x1f,0x73,0xef,
123    0x73,0xef,0xd9,0x9f,0x32,0xf7,0x25,0xf7,0x9e,0xbd,0x5f,0x14,0x3f,0xc3,0xf7,0xf6,
124    0xcf,0x44,0x31,0xbc,0x8b,0x5b,0xbd,0x03,0xa2,0x78,0x2d,0xeb,0x1d,0x76,0xf5,0x60,
125    0x3b,0x18,0xc7,0x61,0xd6,0x3b,0xe8,0xce,0xec,0x98,0xa0,0xcf,0xb4,0xf9,0xee,0xff,
126    0x5a,0xe6,0x77,0xd8,0x69,0xbd,0x20,0xa8,0x0f,0xb8,0x22,0xe6,0xa0,0xe3,0xf3,0x39,
127    0xf9,0x5c,0x73,0x7c,0xbe,0x10,0xc5,0x8d,0xcf,0x51,0xc7,0x07,0xb6,0x23,0x71,0x1c,
128    0x65,0x9d,0x23,0x8e,0xcf,0x58,0xf2,0x59,0xe0,0xd6,0xde,0xfc,0x8e,0x3a,0x3e,0x0b,
129    0x83,0xfa,0x80,0x23,0x62,0x8e,0x38,0x3e,0x5f,0x91,0xcf,0x36,0xc7,0xe7,0x98,0x28,
130    0x6e,0x7c,0x4e,0x38,0x3e,0xb0,0x1d,0x8f,0xe3,0x04,0xeb,0x1c,0x77,0x7c,0xc6,0x07,
131    0xfd,0xbb,0xc9,0xc2,0x90,0x7a,0xfe,0x98,0xdf,0x09,0xc7,0xe7,0xc5,0xa0,0x3e,0xe0,
132    0x88,0x98,0xe3,0x7c,0x4e,0x9e,0xa4,0xef,0x1e,0xf7,0xcc,0xd8,0x2b,0xaa,0x25,0xf2,
133    0x59,0x9d,0xe7,0x42,0x0a,0xb7,0xff,0x4f,0x5a,0xec,0x49,0x57,0x67,0x71,0xd0,0x5a,
134    0xa8,0x8d,0x98,0x3d,0xac,0x73,0x8a,0xbe,0x35,0xee,0x39,0xba,0x8b,0xf9,0x30,0xec,
135    0xef,0xc1,0xc1,0x3d,0x47,0x2d,0xe6,0x94,0xcb,0xbf,0x28,0x68,0x0d,0xd4,0xdc,0xc5,
136    0x33,0x50,0x1a,0x23,0xf0,0x77,0x19,0xd8,0xee,0xc5,0x5d,0x32,0x28,0x8e,0x7f,0x01,
137    0xd9,0x60,0x5b,0x42,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 texture3D 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