• 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/GenerateMipmap.comp.00000007.inc:
9//   Pre-generated shader for the ANGLE Vulkan back-end.
10
11#pragma once
12constexpr uint8_t kGenerateMipmap_comp_00000007[] = {
13    0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x58,0x6d,0x8c,0x55,0xd5,
14    0x15,0x7d,0x6f,0x98,0x7b,0xee,0xbd,0xcf,0x81,0x51,0xa4,0x0c,0x9f,0x13,0xe5,0x23,
15    0x15,0x06,0x50,0xc1,0x69,0x5a,0x50,0x2b,0x69,0xac,0xd4,0x40,0x6a,0x4b,0x52,0x4d,
16    0xe9,0x8f,0x82,0xa6,0x58,0x03,0x36,0x2d,0xb4,0xb6,0x4a,0x45,0xe3,0xa0,0xa2,0xa1,
17    0x84,0x82,0x35,0x86,0xd8,0x98,0x86,0xd1,0x94,0x21,0x05,0x26,0x58,0x9a,0x16,0x8c,
18    0x5a,0xa9,0x30,0x64,0x40,0xdb,0xc6,0x32,0x14,0xf9,0x6a,0xb4,0x05,0x45,0x53,0x92,
19    0xe1,0xd3,0x92,0x9e,0x35,0x6b,0x6d,0xee,0x9e,0xe7,0x08,0xc9,0xe5,0xdc,0xbd,0xf6,
20    0x3e,0xfb,0xec,0xb3,0xf6,0xde,0xe7,0xdc,0x37,0xfd,0x6a,0x46,0xa7,0xa5,0x52,0xb9,
21    0x54,0x29,0x65,0xa5,0x29,0xf5,0xa5,0x9e,0x7f,0x57,0x94,0x6a,0x22,0xc2,0x31,0xd7,
22    0x78,0x7d,0x1c,0x2f,0x2b,0x85,0x1e,0xfc,0xb6,0x99,0xb3,0x67,0x4e,0x5a,0xb4,0xf8,
23    0x9e,0x49,0x37,0x34,0x5f,0x07,0xfb,0x01,0xa5,0x7e,0x3d,0xf3,0xa0,0xab,0x2f,0xa5,
24    0xa5,0x24,0x8e,0xb5,0xf1,0x59,0x38,0xf7,0xfb,0xf7,0x03,0x3f,0x18,0x85,0xc3,0xf1,
25    0xb9,0x3c,0xce,0xaf,0xed,0xf1,0x47,0xe3,0xb2,0xe6,0xcc,0x88,0x33,0xf6,0x72,0xe9,
26    0xd2,0x68,0x8d,0x86,0x95,0x85,0x65,0x58,0x37,0xae,0x03,0xac,0xa6,0xe7,0xbd,0xb6,
27    0x74,0x20,0x8e,0xa3,0x64,0x6f,0xf2,0xd5,0x9a,0x03,0xf9,0x44,0x95,0xfe,0x84,0xf4,
28    0x25,0xf9,0x82,0xdc,0x20,0x1d,0x62,0xbc,0x2c,0xbe,0x0f,0x93,0x7c,0x58,0xf2,0x48,
29    0x9b,0x2b,0x79,0x68,0x7c,0xae,0x8c,0x11,0xd4,0xf4,0xf8,0xea,0xd7,0xb3,0x73,0xbc,
30    0x7f,0x2e,0xda,0x84,0x38,0x5e,0x25,0xff,0x0d,0x51,0xbe,0x32,0x8e,0xc1,0xe9,0x87,
31    0x48,0x5f,0x96,0x1e,0xbe,0x86,0x48,0x3f,0x38,0x7a,0x1a,0x5e,0x02,0x47,0xd4,0x8d,
32    0x88,0xe3,0x70,0xf1,0x78,0x55,0xfc,0x7f,0x4c,0x1c,0x63,0xa2,0x7a,0xf0,0x41,0x71,
33    0xc6,0x97,0xe3,0xd8,0x24,0x9f,0xad,0x5a,0xb3,0x49,0x31,0xb4,0xc9,0xa7,0xc9,0x1b,
34    0xe2,0xd3,0xcf,0xc9,0xed,0x8a,0x01,0x6b,0xee,0x52,0x4c,0x58,0xb3,0x23,0x8e,0xbb,
35    0x34,0xb7,0x31,0xca,0xe0,0xba,0x43,0x7b,0x40,0x0c,0x6f,0xc5,0x11,0xf5,0x00,0x7c,
36    0x9a,0xe4,0xb7,0x85,0x41,0xff,0x57,0xbd,0x77,0xf4,0xf0,0x94,0x97,0xba,0xe4,0xaf,
37    0x5c,0xea,0xfd,0xcf,0xe4,0xe1,0x71,0xfd,0xfd,0x71,0xec,0xd2,0xfc,0x7f,0x0a,0xdf,
38    0x2f,0xff,0x90,0x0f,0x38,0x3e,0x0f,0xc9,0x5f,0xad,0xf6,0x82,0xf7,0xc3,0xd2,0x63,
39    0xbd,0x63,0x9f,0xb1,0x1e,0xf6,0x53,0x71,0xfb,0x3f,0xae,0x3d,0x8d,0x88,0xf2,0x07,
40    0x71,0x3c,0x26,0x0c,0x31,0x7c,0xa8,0x39,0x1f,0x28,0x06,0xc8,0x27,0x84,0x41,0xff,
41    0xb1,0xde,0x8f,0x39,0x7f,0xdd,0xca,0x1b,0xfc,0x9d,0x52,0x8e,0xba,0x25,0x9f,0x8e,
42    0xe3,0x29,0xc9,0x98,0x7f,0x46,0xf1,0x9f,0x96,0x7f,0xc8,0x67,0x5d,0x9e,0x3f,0xd1,
43    0xfb,0x08,0xf9,0x47,0x0d,0xd4,0x61,0x43,0x37,0x14,0xeb,0x5d,0x1e,0xe5,0xac,0x5c,
44    0xc8,0x03,0xcb,0xbd,0xf3,0xbf,0x22,0xca,0xb7,0x38,0x79,0x6d,0x99,0x39,0x36,0xb9,
45    0xb5,0x6c,0x6b,0xd4,0x96,0x5e,0x2c,0x73,0xad,0xd6,0x32,0xd7,0x7f,0xa9,0xcc,0x3a,
46    0x7b,0xb1,0x5c,0xd4,0x57,0xa7,0x7a,0xd5,0xe4,0x93,0xe5,0xa2,0xbe,0x20,0x0f,0xad,
47    0x29,0xea,0x0b,0xf2,0x94,0x9a,0x22,0x47,0x90,0x17,0xd6,0xb0,0x7f,0x6d,0xfd,0x35,
48    0x55,0x72,0x73,0x2d,0xd7,0x34,0xfb,0xe7,0x6a,0x99,0x1f,0x93,0x7f,0x23,0x3d,0x6a,
49    0xe0,0x80,0x74,0xfd,0xc4,0xd7,0xbb,0xb5,0x8c,0x0d,0xf8,0x34,0xc9,0x07,0x85,0x41,
50    0x7f,0x48,0xef,0x41,0x7c,0x1f,0xd2,0x59,0x64,0xfa,0x7f,0xd7,0xb2,0x66,0x83,0x8b,
51    0xe7,0xc3,0x5a,0x16,0xd1,0x84,0x28,0xc1,0x2f,0x7a,0x1f,0x58,0xbb,0x7a,0x67,0x42,
52    0x3c,0x9b,0xd0,0xdb,0x9f,0xaf,0x27,0xd7,0x2b,0xca,0x05,0x76,0x4d,0x3d,0xf9,0x5e,
53    0xeb,0xb0,0x71,0xf5,0xcc,0x7f,0xb7,0x9b,0x3b,0xbe,0x9e,0x3c,0xe0,0x31,0xac,0xa9,
54    0x9e,0x79,0x68,0x75,0xb9,0x9d,0x10,0xb1,0xc4,0xcd,0x9b,0x58,0xcf,0xfe,0xc6,0xf3,
55    0x85,0x88,0xd5,0xa8,0x5e,0x4a,0xe2,0xe4,0x4c,0x44,0x12,0xed,0x15,0xb9,0x5c,0x9b,
56    0x90,0xbb,0x9b,0xc4,0xdd,0x51,0xf1,0xf3,0xf5,0x88,0xc2,0xdf,0xbf,0x84,0x1d,0xad,
57    0x2d,0x7a,0xf3,0x26,0xad,0xfd,0x9e,0xb8,0x9a,0x1e,0x3d,0x82,0xa7,0xff,0xd4,0xb2,
58    0xdf,0x51,0x0f,0x66,0x73,0x4c,0xf8,0xe9,0xb8,0xfa,0xed,0x09,0x7d,0x9c,0x8f,0xef,
59    0xa8,0xc9,0xe1,0x09,0xe3,0xc1,0xb8,0x3c,0xfa,0x80,0xfd,0xc8,0x84,0x7e,0xc1,0xd9,
60    0x12,0xe5,0xf7,0xbe,0x84,0xfb,0x31,0x79,0x41,0xc2,0x33,0x6b,0x77,0x9c,0x81,0x39,
61    0x0b,0x13,0xce,0x83,0x1d,0x74,0x66,0xb7,0x28,0x61,0x3e,0x76,0xc5,0xbd,0xc0,0x6e,
62    0x71,0x52,0xd8,0xb6,0x4a,0x6f,0x3e,0x96,0x08,0x5f,0xa0,0xc7,0xf0,0x16,0xe1,0x8b,
63    0xe4,0xdf,0x7c,0x3d,0x9d,0x70,0x4e,0x8b,0x7c,0x41,0xf7,0xba,0xf6,0x30,0x4a,0x7b,
64    0x40,0x9d,0xda,0xbe,0x46,0x27,0xc4,0xb1,0x8f,0x16,0x61,0x63,0x12,0xe6,0x17,0xba,
65    0x47,0x84,0x8d,0x4d,0x18,0xe7,0x18,0xe7,0x6f,0x9c,0xfc,0xa1,0xce,0x6d,0xee,0x78,
66    0xcd,0x1d,0xe7,0xe6,0x36,0x25,0x8c,0x0b,0x3a,0xf0,0xfd,0x72,0xe8,0xcd,0xf7,0x1b,
67    0xe2,0x1b,0x63,0x8b,0xea,0xe5,0xcd,0x84,0x39,0x46,0xad,0x2e,0xd1,0x9d,0xb3,0x33,
68    0x21,0x6e,0x6b,0x75,0x24,0x8c,0xcb,0xe7,0x60,0x77,0x42,0xdc,0x6c,0x3a,0x13,0xae,
69    0xef,0x6d,0xf6,0x24,0xc4,0xef,0x88,0x36,0xf0,0xbb,0x37,0xe1,0xbc,0x3d,0x8a,0x19,
70    0xd8,0x5b,0x09,0xd7,0xdb,0xeb,0x62,0xfa,0x9b,0x62,0xba,0xc6,0xc5,0xf4,0xf7,0x84,
71    0xb8,0xf9,0x7e,0x47,0x31,0x99,0xbc,0x4f,0xeb,0xdb,0x5a,0x5d,0x09,0x6d,0xf6,0xb9,
72    0xb5,0xf6,0x27,0xf4,0xd3,0xa5,0x79,0x58,0xeb,0x40,0xc2,0x18,0x6c,0x9d,0x3f,0x06,
73    0x62,0x3f,0xd0,0x7d,0xf7,0x6a,0x20,0x86,0x1a,0xc7,0xfd,0xf5,0x5a,0x60,0x8d,0xb7,
74    0xaa,0x0f,0x60,0xf3,0x7a,0x20,0xbe,0x2c,0xda,0x40,0xfe,0x73,0xe0,0x3c,0xe0,0x8f,
75    0x0a,0xfb,0x4b,0x20,0x0e,0x0c,0xf3,0x70,0x87,0xbd,0x19,0x78,0x7f,0xdd,0x15,0x6b,
76    0xaa,0xe7,0xee,0x0a,0xc4,0x60,0x5b,0xa3,0xbb,0x6b,0x91,0xee,0xfa,0x8e,0x40,0x3d,
77    0xe2,0xc0,0x5d,0x7f,0x30,0x61,0xef,0x22,0x8e,0x9b,0x63,0x7e,0x21,0x77,0xc8,0x37,
78    0xec,0x8f,0x24,0xb4,0x81,0x3d,0xee,0xa4,0xce,0xc0,0x7b,0x6a,0xa0,0x7a,0x13,0xf7,
79    0xd3,0x9e,0x40,0x7c,0x91,0xee,0xce,0xb7,0x03,0xe7,0xdd,0x1d,0x65,0xe8,0xc0,0x17,
80    0x30,0xab,0xaf,0x63,0xca,0xf9,0x5a,0xd7,0x9b,0xc7,0x13,0xe2,0xc6,0xfb,0x47,0x09,
81    0x31,0x9f,0xe3,0x8f,0x95,0xe3,0x8f,0x5c,0xad,0x76,0x2b,0x7f,0xdd,0xae,0x5e,0x4e,
82    0x25,0xc4,0xcd,0xd7,0xd9,0x84,0x98,0xcf,0xe1,0x39,0xe5,0xf0,0xac,0xcb,0xe1,0x27,
83    0x09,0xd7,0xb0,0x1c,0xbe,0x13,0x88,0x59,0x0e,0x0f,0x04,0x62,0x96,0x9f,0x43,0x81,
84    0x98,0xcf,0xcf,0xd1,0x40,0x1c,0x98,0xe5,0xe3,0x3d,0xe5,0xe3,0x68,0x1f,0xf9,0x78,
85    0x3f,0x50,0x6f,0xf9,0xb8,0xa0,0x7c,0xe0,0xec,0x43,0x3e,0x20,0xbf,0xef,0xf2,0x51,
86    0x0e,0xb4,0x31,0xee,0x8f,0x57,0x71,0x7f,0x22,0xd0,0x06,0xdc,0x43,0x87,0x7d,0x9e,
87    0x70,0xdc,0xd7,0x05,0xf6,0x92,0xe7,0xbe,0x7f,0x20,0x6e,0x7c,0x0d,0x08,0xec,0xaf,
88    0xfe,0xa1,0xe0,0xab,0x3e,0x90,0xfb,0x01,0xce,0x57,0x43,0x60,0xaf,0x78,0xee,0x87,
89    0x04,0xe2,0xe6,0x6b,0x68,0x60,0xff,0x0c,0x71,0xbe,0x86,0x05,0x72,0x0f,0x9d,0x71,
90    0x3f,0x22,0x70,0x0d,0xe3,0xfe,0x64,0x20,0x66,0xdc,0x9f,0x09,0xc4,0x8c,0xfb,0xf3,
91    0x81,0x98,0xe7,0xfe,0x42,0x20,0xee,0xb9,0x2f,0xa7,0xe4,0xfe,0x42,0x1f,0xdc,0xd7,
92    0xa4,0xd4,0x1b,0xf7,0x8d,0x81,0xdc,0x9f,0x14,0xf7,0x90,0x61,0x63,0xdc,0x5f,0x1d,
93    0x68,0x63,0xdc,0x87,0xb4,0x37,0xf7,0x79,0x4a,0x1b,0x70,0x0f,0x1d,0xf6,0x09,0xcc,
94    0xb8,0xb8,0x36,0xb0,0xa6,0x3d,0xaf,0xd7,0x89,0xd7,0x6b,0x1d,0x67,0xd3,0x02,0xeb,
95    0xd5,0x73,0x76,0xa3,0x38,0x9b,0xe6,0x38,0xbb,0x39,0x70,0xbe,0x71,0x36,0x20,0x25,
96    0x66,0x9c,0x0d,0x4a,0x89,0x19,0x67,0x0d,0x29,0x31,0xcf,0xd9,0xb0,0x94,0xb8,0xe7,
97    0x6c,0xa4,0x38,0x83,0xae,0x9a,0xb3,0xc6,0x94,0x7a,0xe3,0xec,0x16,0x71,0x86,0x6f,
98    0x33,0x70,0x06,0xb9,0xd1,0x71,0xf6,0x95,0x40,0x1b,0xe3,0x6c,0x54,0x15,0x67,0x63,
99    0x53,0xda,0x80,0x33,0xe8,0xb0,0x4f,0x60,0xed,0xd1,0x3f,0x7e,0x7b,0x7c,0x35,0xf0,
100    0xee,0x6f,0x2f,0xf1,0x2e,0x9a,0xa1,0xbb,0xe8,0x5c,0xb4,0x87,0xee,0xb6,0xf8,0x00,
101    0xc3,0x7d,0x84,0xf7,0xb3,0x71,0x7c,0x59,0xf2,0x0c,0xc9,0x5f,0x93,0x8c,0xb1,0x3b,
102    0xee,0x11,0x75,0x3a,0xb9,0x9e,0x67,0x1e,0x6c,0x56,0xc7,0x67,0x55,0x7c,0x36,0x6b,
103    0xcd,0x99,0x81,0x7a,0x7c,0x5f,0x9e,0x8a,0xeb,0xac,0x91,0xde,0xd6,0x85,0x7e,0x56,
104    0x7c,0xd6,0xc8,0xef,0x2c,0xd7,0xbf,0xdf,0x10,0x1f,0x98,0x6f,0x1c,0x7c,0x33,0x10,
105    0x9f,0x1e,0xbb,0x06,0xdf,0xdd,0xe3,0x53,0x7e,0x8b,0x8f,0xd5,0x5d,0x03,0xde,0x80,
106    0xc1,0xee,0x70,0x9c,0x63,0xdf,0x5d,0xf8,0xfe,0xde,0xa4,0x98,0xbe,0x15,0x8a,0xef,
107    0x19,0xf0,0xb0,0xd2,0xc5,0x03,0xdd,0x9d,0xf1,0x59,0xa9,0x78,0xee,0x74,0x3d,0x3a,
108    0x2f,0xf0,0xac,0x05,0x7f,0x86,0x2d,0xd0,0x19,0x00,0xcc,0x62,0x9a,0xa3,0x98,0x3a,
109    0x74,0xd7,0x5a,0xec,0xdf,0x49,0xa9,0x33,0xbb,0xb9,0xb2,0x9b,0x17,0x7a,0xdb,0xcd,
110    0x4b,0xa9,0x33,0xbb,0xf9,0xce,0xdf,0x02,0x77,0x7e,0xdd,0x9b,0x52,0x67,0x76,0x0b,
111    0x9d,0x3f,0x6f,0x77,0x7f,0x4a,0x1d,0xea,0x14,0xf2,0xa2,0x94,0xb1,0xcc,0x73,0xd8,
112    0x8f,0x53,0xe2,0xf7,0x3a,0xec,0x81,0x94,0x38,0xe6,0xff,0x42,0xd8,0x4f,0x53,0xe2,
113    0x75,0xea,0x6b,0xe4,0x02,0x98,0x7d,0x27,0xfc,0x2c,0xf0,0x3b,0x61,0x9c,0xfb,0x4e,
114    0x78,0x30,0x10,0x7f,0x3a,0xda,0xa0,0x5e,0x7e,0xae,0x9a,0xc0,0xd9,0xd0,0x22,0xec,
115    0xe1,0x40,0x1c,0xbf,0x3b,0x96,0xe8,0x3b,0x75,0x69,0x20,0x6e,0x5c,0x3f,0x12,0x98,
116    0xe7,0xa5,0xa1,0x38,0x23,0x1f,0x0d,0xc4,0x9f,0x90,0x9f,0x96,0x3e,0x7c,0x2f,0x0b,
117    0xc4,0xbd,0xef,0xc7,0x03,0x71,0xf3,0xfd,0x84,0xce,0xdf,0xc7,0x9d,0xef,0x27,0x03,
118    0x71,0x3b,0x4b,0x96,0x07,0xae,0xf7,0xa4,0x3b,0x4b,0x9e,0x0a,0xdc,0xdf,0x72,0xc7,
119    0xf7,0x8a,0x8b,0x35,0xca,0x7b,0xfe,0xa1,0x94,0xf7,0x7c,0x7b,0xa9,0xe8,0xdd,0x25,
120    0x29,0x71,0xeb,0xdd,0xa5,0x29,0xe7,0xa1,0x77,0xa1,0x83,0xdf,0xa5,0x29,0x7b,0xce,
121    0x6a,0x71,0x65,0x1f,0x35,0x0d,0xfd,0x2a,0xe9,0x57,0x29,0x2e,0xc4,0xbe,0x5a,0x3c,
122    0x74,0x96,0x7b,0xf7,0x2d,0xfa,0xcc,0xfa,0xe0,0x57,0x55,0x7d,0xb0,0xc5,0xf5,0x01,
123    0x74,0xcf,0xc6,0x67,0x8b,0xe6,0x3d,0xeb,0xf6,0xf7,0x7c,0xb0,0xef,0x18,0xd6,0xdd,
124    0xb2,0x3e,0x7a,0x10,0xd8,0xf3,0x8e,0xdf,0x17,0x94,0x3b,0x7c,0x1f,0x9b,0x9f,0x75,
125    0xba,0x7f,0xcd,0xcf,0x53,0xf2,0xf3,0x42,0x28,0xfc,0x00,0x5b,0xe7,0xfc,0xfc,0x56,
126    0x3a,0xef,0xa7,0x4d,0x77,0x89,0xf9,0x59,0xe9,0xe2,0x81,0x3d,0xfc,0x00,0x6b,0x73,
127    0x7b,0x68,0xd7,0x59,0x6a,0x73,0xd6,0xb8,0xb5,0x6d,0x0e,0xb0,0x76,0x9d,0x7b,0xc6,
128    0xc3,0x96,0xaa,0x73,0x11,0x23,0xb8,0x3b,0x9a,0xf6,0xfe,0xae,0x6f,0x4b,0xa9,0x6f,
129    0x73,0xe7,0xef,0xef,0x52,0x9e,0xbf,0x6d,0x3a,0x7f,0x37,0xa5,0x05,0xdf,0xd0,0x6d,
130    0x8c,0xcf,0x26,0xcd,0xdb,0xa8,0xdc,0x1f,0x95,0x0c,0xfc,0xb3,0xce,0xb3,0xff,0xa6,
131    0xbd,0xf3,0x38,0x3e,0x2b,0xfc,0x42,0x77,0x32,0x3e,0xc0,0xe0,0x07,0xef,0xc6,0xe5,
132    0x85,0xf4,0xd3,0xe7,0x59,0x9e,0x7d,0xfa,0x3c,0xfb,0x76,0xd6,0xf7,0x79,0x36,0x27,
133    0xa3,0xce,0xec,0xbe,0x2b,0x3b,0xf8,0xf5,0x76,0x73,0x33,0xea,0xcc,0xee,0x7b,0xce,
134    0x1f,0xd6,0x33,0xbb,0xf9,0x19,0x75,0x66,0xb7,0xc0,0xf9,0xf3,0x76,0x0b,0x33,0xea,
135    0xec,0x9c,0xfa,0x51,0xc6,0x58,0xe6,0x3a,0x6c,0x71,0x46,0x7c,0xbe,0xc3,0x7e,0x92,
136    0x11,0xc7,0x7c,0x3b,0xcf,0x1e,0xc8,0x88,0xd7,0x95,0x8b,0x33,0x6c,0x70,0xc6,0x33,
137    0x6c,0xbc,0x3b,0xc3,0x1a,0x32,0xe2,0xd6,0xf7,0x23,0x33,0x62,0x5d,0xee,0x7b,0xfe,
138    0xc1,0x8c,0x7d,0xde,0xe6,0xfa,0xfc,0xa1,0x8c,0xb8,0xf5,0xf9,0xc3,0x19,0xd7,0x44,
139    0x9f,0x43,0x07,0x3f,0xc0,0xec,0x37,0xe9,0x98,0xac,0xf8,0xcd,0x76,0xf1,0xf7,0x67,
140    0x46,0xae,0xc6,0x38,0x6e,0x1e,0x13,0x37,0x63,0x95,0x2f,0xd4,0xeb,0x63,0xf2,0x8d,
141    0xba,0xb1,0x7c,0x63,0xb4,0xfa,0xfb,0x93,0xea,0x6f,0x83,0xea,0x6f,0xbb,0xab,0x3f,
142    0xe8,0xb6,0xc5,0x67,0xbb,0xea,0x6d,0x5b,0x55,0xfd,0x6d,0xbf,0x44,0xfd,0xfd,0x32,
143    0x63,0xfd,0x75,0xcb,0x6f,0x87,0xab,0x3f,0xe8,0x56,0x23,0x7e,0xc5,0x83,0x77,0xfb,
144    0x7d,0xfa,0x4c,0xc6,0x1e,0x6d,0x2d,0x17,0xd8,0x73,0xda,0x3f,0x30,0xdb,0xff,0xaf,
145    0x33,0xda,0x7a,0x4e,0x5e,0x12,0xe6,0x6b,0x77,0x7d,0xc6,0xf9,0xde,0x6e,0xa3,0xec,
146    0x36,0xb8,0x7a,0x3e,0x27,0xee,0x9e,0x91,0xbd,0xd5,0xd5,0xf9,0x8c,0x3a,0xb3,0xc3,
147    0x1f,0x99,0xce,0x6a,0x7d,0x6f,0x57,0xce,0xa9,0x33,0xbb,0x20,0x3b,0xc4,0xb4,0xde,
148    0xd9,0xa5,0x39,0x75,0x66,0x57,0x27,0xbb,0x8d,0x55,0x76,0xfd,0x73,0xea,0xac,0x4e,
149    0x07,0xe6,0x8c,0xa5,0xec,0xb0,0x41,0x39,0xf1,0xd4,0x61,0x83,0x73,0xe2,0x98,0x6f,
150    0xf5,0xdc,0x90,0x13,0xf7,0xf5,0xbc,0x55,0xf5,0xdc,0xe4,0xea,0xf9,0x0f,0x19,0x71,
151    0xab,0xe7,0x57,0x32,0x62,0xbe,0x9e,0x87,0xe5,0xac,0xe7,0x0d,0xae,0x9e,0x87,0xe7,
152    0xc4,0xad,0x9e,0x1b,0x73,0xae,0x89,0x7a,0x86,0x0e,0x7e,0x80,0x19,0xff,0x3b,0xc4,
153    0x7f,0x93,0x3b,0xe7,0x47,0x8b,0x87,0x1d,0xe2,0x15,0xb5,0x3b,0x5a,0x7e,0x50,0x73,
154    0x56,0x2b,0x1d,0xae,0x76,0x77,0xa9,0x76,0x5b,0x75,0xc6,0xed,0x76,0xb5,0x0b,0x5d,
155    0x47,0x7c,0x76,0xab,0x56,0x3b,0xaa,0x6a,0x77,0xf7,0x25,0x6a,0x77,0x72,0xce,0xda,
156    0x35,0xbf,0x8b,0xf3,0xc2,0x2f,0x74,0x53,0xe2,0x03,0x0c,0x7e,0xf0,0x6e,0x75,0xda,
157    0x9c,0x17,0xf7,0x99,0xed,0x75,0x6a,0x4e,0xbc,0xd3,0xfd,0x0d,0xe6,0xc6,0xbc,0xb8,
158    0xaf,0xcc,0x6e,0xba,0xec,0x7c,0x8d,0xdf,0x9a,0x13,0xef,0x74,0xbf,0xc7,0x67,0xc9,
159    0xce,0xd7,0xf8,0x1d,0x39,0x71,0x6f,0x37,0x3b,0xe7,0x3a,0xde,0xdf,0x5d,0x9a,0x8b,
160    0xbf,0x45,0x1a,0x36,0x27,0x27,0xde,0xe9,0x72,0xb1,0x4e,0xb9,0x98,0x2a,0x1f,0x56,
161    0x93,0xad,0x39,0x75,0x66,0xb7,0x5e,0x76,0xb7,0x56,0xd9,0xb5,0xe5,0xd4,0x99,0xdd,
162    0x26,0xd9,0x21,0xce,0xd9,0xce,0x6e,0x73,0x4e,0x9d,0xd9,0xfd,0x5e,0x76,0x73,0xaa,
163    0xec,0xb6,0xe6,0xd4,0x59,0x8d,0x6f,0xcb,0x19,0x4b,0x9b,0xc3,0x5e,0xc9,0x89,0x6f,
164    0x76,0xd8,0xab,0x39,0xf1,0xad,0xae,0x17,0x5e,0xcb,0x89,0xfb,0x5e,0xb8,0x3b,0x67,
165    0x2f,0x4c,0x74,0xbd,0x70,0x4f,0x4e,0xdc,0x7a,0xe1,0xbe,0x9c,0x98,0xef,0x85,0x37,
166    0xd4,0x0b,0xad,0xee,0x6f,0x35,0x3b,0x72,0xe2,0xd6,0x0b,0x3b,0x73,0xae,0x89,0x5e,
167    0x80,0x0e,0x7e,0x76,0xba,0x5e,0xf8,0xa1,0x6a,0xc6,0xf3,0xdf,0x29,0x1e,0xa0,0x1b,
168    0xa8,0x6f,0xea,0x4e,0xf9,0x41,0x0d,0x5b,0xed,0x2d,0xce,0x8b,0x5e,0xf8,0x87,0x7a,
169    0x01,0xb9,0x45,0xcd,0x76,0xb9,0x5e,0x80,0x6e,0x5f,0x7c,0xba,0x54,0xfb,0xfb,0xaa,
170    0x7a,0xa1,0xeb,0x12,0xbd,0xd0,0xa5,0x5e,0xb0,0xdf,0x87,0x47,0x5c,0x2f,0x40,0xb7,
171    0x3f,0x3e,0x47,0x14,0xcf,0x7e,0x97,0xcb,0x2b,0x2a,0xdc,0x03,0xe2,0xb7,0xbf,0x65,
172    0xf5,0x9c,0x63,0x15,0xea,0xcc,0xae,0x41,0x76,0xed,0xa5,0xde,0x76,0x43,0x2a,0xd4,
173    0x99,0xdd,0x48,0xd9,0xb5,0x55,0xd9,0x35,0x56,0xa8,0xbb,0x78,0x8e,0xc8,0x6e,0x43,
174    0x95,0xdd,0x98,0x0a,0x75,0x56,0x1b,0xe3,0x2a,0x8c,0x65,0x88,0xc3,0x9a,0x2a,0xc4,
175    0x1b,0x1d,0x36,0xb1,0x42,0x1c,0xf3,0xad,0x86,0x26,0x55,0x88,0xd7,0x95,0x8b,0x7a,
176    0x79,0x57,0x35,0x64,0xb5,0x71,0x7d,0x85,0xb5,0x31,0xa1,0xbe,0xa8,0x8d,0xc9,0x15,
177    0xe2,0x56,0x1b,0xcd,0x15,0xfa,0x42,0x6d,0x40,0x07,0x1f,0xcd,0x15,0xe6,0xc6,0x38,
178    0x3d,0x92,0xf7,0xce,0x15,0x46,0xcb,0xcd,0x97,0x12,0xe6,0xbc,0x59,0x7f,0xb7,0x9f,
179    0x96,0x14,0xb9,0x81,0x6e,0x2a,0xfe,0x9e,0xa1,0xbf,0x25,0xe3,0x1d,0x7e,0x6e,0x97,
180    0x0c,0xbc,0xaf,0xdf,0x0d,0xa6,0xc7,0xf8,0xbf,0x52,0xb9,0xf4,0xc5,0xf8,0xfc,0x1f,
181    0x3f,0xc4,0x2e,0x28,0x5c,0x1e,0x00,0x00
182};
183
184// Generated from:
185//
186// #version 450 core
187//
188// #extension GL_GOOGLE_include_directive : require
189// #extension GL_EXT_samplerless_texture_functions : require
190//
191// layout(local_size_x = 256, local_size_y = 1, local_size_z = 1)in;
192//
193// layout(set = 0, binding = 0, rgba16)uniform coherent image2D dst[6];
194// layout(set = 0, binding = 1)uniform sampler2D src;
195//
196// layout(push_constant)uniform PushConstants {
197//
198//     vec2 invSrcExtent;
199//
200//     uint levelCount;
201// } params;
202//
203// #line 1 "shaders/src/third_party/ffx_spd/ffx_a.h"
204//
205// #extension GL_EXT_shader_16bit_storage : require
206// #extension GL_EXT_shader_explicit_arithmetic_types : require
207//
208//    float AF1_x(float a){ return float(a);}
209//    vec2 AF2_x(float a){ return vec2(a, a);}
210//    vec3 AF3_x(float a){ return vec3(a, a, a);}
211//    vec4 AF4_x(float a){ return vec4(a, a, a, a);}
212//
213//    uint AU1_x(uint a){ return uint(a);}
214//    uvec2 AU2_x(uint a){ return uvec2(a, a);}
215//    uvec3 AU3_x(uint a){ return uvec3(a, a, a);}
216//    uvec4 AU4_x(uint a){ return uvec4(a, a, a, a);}
217//
218//    uint AAbsSU1(uint a){ return uint(abs(int(a)));}
219//    uvec2 AAbsSU2(uvec2 a){ return uvec2(abs(ivec2(a)));}
220//    uvec3 AAbsSU3(uvec3 a){ return uvec3(abs(ivec3(a)));}
221//    uvec4 AAbsSU4(uvec4 a){ return uvec4(abs(ivec4(a)));}
222//
223//    uint ABfe(uint src, uint off, uint bits){ return bitfieldExtract(src, int(off), int(bits));}
224//    uint ABfi(uint src, uint ins, uint mask){ return(ins & mask)|(src &(~ mask));}
225//
226//    uint ABfiM(uint src, uint ins, uint bits){ return bitfieldInsert(src, ins, 0, int(bits));}
227//
228//    float AFractF1(float x){ return fract(x);}
229//    vec2 AFractF2(vec2 x){ return fract(x);}
230//    vec3 AFractF3(vec3 x){ return fract(x);}
231//    vec4 AFractF4(vec4 x){ return fract(x);}
232//
233//    float ALerpF1(float x, float y, float a){ return mix(x, y, a);}
234//    vec2 ALerpF2(vec2 x, vec2 y, vec2 a){ return mix(x, y, a);}
235//    vec3 ALerpF3(vec3 x, vec3 y, vec3 a){ return mix(x, y, a);}
236//    vec4 ALerpF4(vec4 x, vec4 y, vec4 a){ return mix(x, y, a);}
237//
238//    float AMax3F1(float x, float y, float z){ return max(x, max(y, z));}
239//    vec2 AMax3F2(vec2 x, vec2 y, vec2 z){ return max(x, max(y, z));}
240//    vec3 AMax3F3(vec3 x, vec3 y, vec3 z){ return max(x, max(y, z));}
241//    vec4 AMax3F4(vec4 x, vec4 y, vec4 z){ return max(x, max(y, z));}
242//
243//    uint AMax3SU1(uint x, uint y, uint z){ return uint(max(int(x), max(int(y), int(z))));}
244//    uvec2 AMax3SU2(uvec2 x, uvec2 y, uvec2 z){ return uvec2(max(ivec2(x), max(ivec2(y), ivec2(z))));}
245//    uvec3 AMax3SU3(uvec3 x, uvec3 y, uvec3 z){ return uvec3(max(ivec3(x), max(ivec3(y), ivec3(z))));}
246//    uvec4 AMax3SU4(uvec4 x, uvec4 y, uvec4 z){ return uvec4(max(ivec4(x), max(ivec4(y), ivec4(z))));}
247//
248//    uint AMax3U1(uint x, uint y, uint z){ return max(x, max(y, z));}
249//    uvec2 AMax3U2(uvec2 x, uvec2 y, uvec2 z){ return max(x, max(y, z));}
250//    uvec3 AMax3U3(uvec3 x, uvec3 y, uvec3 z){ return max(x, max(y, z));}
251//    uvec4 AMax3U4(uvec4 x, uvec4 y, uvec4 z){ return max(x, max(y, z));}
252//
253//    uint AMaxSU1(uint a, uint b){ return uint(max(int(a), int(b)));}
254//    uvec2 AMaxSU2(uvec2 a, uvec2 b){ return uvec2(max(ivec2(a), ivec2(b)));}
255//    uvec3 AMaxSU3(uvec3 a, uvec3 b){ return uvec3(max(ivec3(a), ivec3(b)));}
256//    uvec4 AMaxSU4(uvec4 a, uvec4 b){ return uvec4(max(ivec4(a), ivec4(b)));}
257//
258//    float AMed3F1(float x, float y, float z){ return max(min(x, y), min(max(x, y), z));}
259//    vec2 AMed3F2(vec2 x, vec2 y, vec2 z){ return max(min(x, y), min(max(x, y), z));}
260//    vec3 AMed3F3(vec3 x, vec3 y, vec3 z){ return max(min(x, y), min(max(x, y), z));}
261//    vec4 AMed3F4(vec4 x, vec4 y, vec4 z){ return max(min(x, y), min(max(x, y), z));}
262//
263//    float AMin3F1(float x, float y, float z){ return min(x, min(y, z));}
264//    vec2 AMin3F2(vec2 x, vec2 y, vec2 z){ return min(x, min(y, z));}
265//    vec3 AMin3F3(vec3 x, vec3 y, vec3 z){ return min(x, min(y, z));}
266//    vec4 AMin3F4(vec4 x, vec4 y, vec4 z){ return min(x, min(y, z));}
267//
268//    uint AMin3SU1(uint x, uint y, uint z){ return uint(min(int(x), min(int(y), int(z))));}
269//    uvec2 AMin3SU2(uvec2 x, uvec2 y, uvec2 z){ return uvec2(min(ivec2(x), min(ivec2(y), ivec2(z))));}
270//    uvec3 AMin3SU3(uvec3 x, uvec3 y, uvec3 z){ return uvec3(min(ivec3(x), min(ivec3(y), ivec3(z))));}
271//    uvec4 AMin3SU4(uvec4 x, uvec4 y, uvec4 z){ return uvec4(min(ivec4(x), min(ivec4(y), ivec4(z))));}
272//
273//    uint AMin3U1(uint x, uint y, uint z){ return min(x, min(y, z));}
274//    uvec2 AMin3U2(uvec2 x, uvec2 y, uvec2 z){ return min(x, min(y, z));}
275//    uvec3 AMin3U3(uvec3 x, uvec3 y, uvec3 z){ return min(x, min(y, z));}
276//    uvec4 AMin3U4(uvec4 x, uvec4 y, uvec4 z){ return min(x, min(y, z));}
277//
278//    uint AMinSU1(uint a, uint b){ return uint(min(int(a), int(b)));}
279//    uvec2 AMinSU2(uvec2 a, uvec2 b){ return uvec2(min(ivec2(a), ivec2(b)));}
280//    uvec3 AMinSU3(uvec3 a, uvec3 b){ return uvec3(min(ivec3(a), ivec3(b)));}
281//    uvec4 AMinSU4(uvec4 a, uvec4 b){ return uvec4(min(ivec4(a), ivec4(b)));}
282//
283//    float ANCosF1(float x){ return cos(x * AF1_x(float(6.28318530718)));}
284//    vec2 ANCosF2(vec2 x){ return cos(x * AF2_x(float(6.28318530718)));}
285//    vec3 ANCosF3(vec3 x){ return cos(x * AF3_x(float(6.28318530718)));}
286//    vec4 ANCosF4(vec4 x){ return cos(x * AF4_x(float(6.28318530718)));}
287//
288//    float ANSinF1(float x){ return sin(x * AF1_x(float(6.28318530718)));}
289//    vec2 ANSinF2(vec2 x){ return sin(x * AF2_x(float(6.28318530718)));}
290//    vec3 ANSinF3(vec3 x){ return sin(x * AF3_x(float(6.28318530718)));}
291//    vec4 ANSinF4(vec4 x){ return sin(x * AF4_x(float(6.28318530718)));}
292//
293//    float ARcpF1(float x){ return AF1_x(float(1.0))/ x;}
294//    vec2 ARcpF2(vec2 x){ return AF2_x(float(1.0))/ x;}
295//    vec3 ARcpF3(vec3 x){ return AF3_x(float(1.0))/ x;}
296//    vec4 ARcpF4(vec4 x){ return AF4_x(float(1.0))/ x;}
297//
298//    float ARsqF1(float x){ return AF1_x(float(1.0))/ sqrt(x);}
299//    vec2 ARsqF2(vec2 x){ return AF2_x(float(1.0))/ sqrt(x);}
300//    vec3 ARsqF3(vec3 x){ return AF3_x(float(1.0))/ sqrt(x);}
301//    vec4 ARsqF4(vec4 x){ return AF4_x(float(1.0))/ sqrt(x);}
302//
303//    float ASatF1(float x){ return clamp(x, AF1_x(float(0.0)), AF1_x(float(1.0)));}
304//    vec2 ASatF2(vec2 x){ return clamp(x, AF2_x(float(0.0)), AF2_x(float(1.0)));}
305//    vec3 ASatF3(vec3 x){ return clamp(x, AF3_x(float(0.0)), AF3_x(float(1.0)));}
306//    vec4 ASatF4(vec4 x){ return clamp(x, AF4_x(float(0.0)), AF4_x(float(1.0)));}
307//
308//    uint AShrSU1(uint a, uint b){ return uint(int(a)>> int(b));}
309//    uvec2 AShrSU2(uvec2 a, uvec2 b){ return uvec2(ivec2(a)>> ivec2(b));}
310//    uvec3 AShrSU3(uvec3 a, uvec3 b){ return uvec3(ivec3(a)>> ivec3(b));}
311//    uvec4 AShrSU4(uvec4 a, uvec4 b){ return uvec4(ivec4(a)>> ivec4(b));}
312//
313//     f16vec4 AH4_AU2_x(uvec2 x){ return f16vec4(unpackFloat2x16(x . x), unpackFloat2x16(x . y));}
314//
315//     uvec2 AU2_AH4_x(f16vec4 x){ return uvec2(packFloat2x16(x . xy), packFloat2x16(x . zw));}
316//
317//     float16_t AH1_x(float16_t a){ return float16_t(a);}
318//     f16vec2 AH2_x(float16_t a){ return f16vec2(a, a);}
319//     f16vec3 AH3_x(float16_t a){ return f16vec3(a, a, a);}
320//     f16vec4 AH4_x(float16_t a){ return f16vec4(a, a, a, a);}
321//
322//     uint16_t AW1_x(uint16_t a){ return uint16_t(a);}
323//     u16vec2 AW2_x(uint16_t a){ return u16vec2(a, a);}
324//     u16vec3 AW3_x(uint16_t a){ return u16vec3(a, a, a);}
325//     u16vec4 AW4_x(uint16_t a){ return u16vec4(a, a, a, a);}
326//
327//     uint16_t AAbsSW1(uint16_t a){ return uint16_t(abs(int16_t(a)));}
328//     u16vec2 AAbsSW2(u16vec2 a){ return u16vec2(abs(i16vec2(a)));}
329//     u16vec3 AAbsSW3(u16vec3 a){ return u16vec3(abs(i16vec3(a)));}
330//     u16vec4 AAbsSW4(u16vec4 a){ return u16vec4(abs(i16vec4(a)));}
331//
332//     float16_t AFractH1(float16_t x){ return fract(x);}
333//     f16vec2 AFractH2(f16vec2 x){ return fract(x);}
334//     f16vec3 AFractH3(f16vec3 x){ return fract(x);}
335//     f16vec4 AFractH4(f16vec4 x){ return fract(x);}
336//
337//     float16_t ALerpH1(float16_t x, float16_t y, float16_t a){ return mix(x, y, a);}
338//     f16vec2 ALerpH2(f16vec2 x, f16vec2 y, f16vec2 a){ return mix(x, y, a);}
339//     f16vec3 ALerpH3(f16vec3 x, f16vec3 y, f16vec3 a){ return mix(x, y, a);}
340//     f16vec4 ALerpH4(f16vec4 x, f16vec4 y, f16vec4 a){ return mix(x, y, a);}
341//
342//     float16_t AMax3H1(float16_t x, float16_t y, float16_t z){ return max(x, max(y, z));}
343//     f16vec2 AMax3H2(f16vec2 x, f16vec2 y, f16vec2 z){ return max(x, max(y, z));}
344//     f16vec3 AMax3H3(f16vec3 x, f16vec3 y, f16vec3 z){ return max(x, max(y, z));}
345//     f16vec4 AMax3H4(f16vec4 x, f16vec4 y, f16vec4 z){ return max(x, max(y, z));}
346//
347//     uint16_t AMaxSW1(uint16_t a, uint16_t b){ return uint16_t(max(int(a), int(b)));}
348//     u16vec2 AMaxSW2(u16vec2 a, u16vec2 b){ return u16vec2(max(ivec2(a), ivec2(b)));}
349//     u16vec3 AMaxSW3(u16vec3 a, u16vec3 b){ return u16vec3(max(ivec3(a), ivec3(b)));}
350//     u16vec4 AMaxSW4(u16vec4 a, u16vec4 b){ return u16vec4(max(ivec4(a), ivec4(b)));}
351//
352//     float16_t AMin3H1(float16_t x, float16_t y, float16_t z){ return min(x, min(y, z));}
353//     f16vec2 AMin3H2(f16vec2 x, f16vec2 y, f16vec2 z){ return min(x, min(y, z));}
354//     f16vec3 AMin3H3(f16vec3 x, f16vec3 y, f16vec3 z){ return min(x, min(y, z));}
355//     f16vec4 AMin3H4(f16vec4 x, f16vec4 y, f16vec4 z){ return min(x, min(y, z));}
356//
357//     uint16_t AMinSW1(uint16_t a, uint16_t b){ return uint16_t(min(int(a), int(b)));}
358//     u16vec2 AMinSW2(u16vec2 a, u16vec2 b){ return u16vec2(min(ivec2(a), ivec2(b)));}
359//     u16vec3 AMinSW3(u16vec3 a, u16vec3 b){ return u16vec3(min(ivec3(a), ivec3(b)));}
360//     u16vec4 AMinSW4(u16vec4 a, u16vec4 b){ return u16vec4(min(ivec4(a), ivec4(b)));}
361//
362//     float16_t ARcpH1(float16_t x){ return AH1_x(float16_t(1.0))/ x;}
363//     f16vec2 ARcpH2(f16vec2 x){ return AH2_x(float16_t(1.0))/ x;}
364//     f16vec3 ARcpH3(f16vec3 x){ return AH3_x(float16_t(1.0))/ x;}
365//     f16vec4 ARcpH4(f16vec4 x){ return AH4_x(float16_t(1.0))/ x;}
366//
367//     float16_t ARsqH1(float16_t x){ return AH1_x(float16_t(1.0))/ sqrt(x);}
368//     f16vec2 ARsqH2(f16vec2 x){ return AH2_x(float16_t(1.0))/ sqrt(x);}
369//     f16vec3 ARsqH3(f16vec3 x){ return AH3_x(float16_t(1.0))/ sqrt(x);}
370//     f16vec4 ARsqH4(f16vec4 x){ return AH4_x(float16_t(1.0))/ sqrt(x);}
371//
372//     float16_t ASatH1(float16_t x){ return clamp(x, AH1_x(float16_t(0.0)), AH1_x(float16_t(1.0)));}
373//     f16vec2 ASatH2(f16vec2 x){ return clamp(x, AH2_x(float16_t(0.0)), AH2_x(float16_t(1.0)));}
374//     f16vec3 ASatH3(f16vec3 x){ return clamp(x, AH3_x(float16_t(0.0)), AH3_x(float16_t(1.0)));}
375//     f16vec4 ASatH4(f16vec4 x){ return clamp(x, AH4_x(float16_t(0.0)), AH4_x(float16_t(1.0)));}
376//
377//     uint16_t AShrSW1(uint16_t a, uint16_t b){ return uint16_t(int16_t(a)>> int16_t(b));}
378//     u16vec2 AShrSW2(u16vec2 a, u16vec2 b){ return u16vec2(i16vec2(a)>> i16vec2(b));}
379//     u16vec3 AShrSW3(u16vec3 a, u16vec3 b){ return u16vec3(i16vec3(a)>> i16vec3(b));}
380//     u16vec4 AShrSW4(u16vec4 a, u16vec4 b){ return u16vec4(i16vec4(a)>> i16vec4(b));}
381//
382//    float ACpySgnF1(float d, float s){ return uintBitsToFloat(uint(floatBitsToUint(float(d))|(floatBitsToUint(float(s))& AU1_x(uint(0x80000000u)))));}
383//    vec2 ACpySgnF2(vec2 d, vec2 s){ return uintBitsToFloat(uvec2(floatBitsToUint(vec2(d))|(floatBitsToUint(vec2(s))& AU2_x(uint(0x80000000u)))));}
384//    vec3 ACpySgnF3(vec3 d, vec3 s){ return uintBitsToFloat(uvec3(floatBitsToUint(vec3(d))|(floatBitsToUint(vec3(s))& AU3_x(uint(0x80000000u)))));}
385//    vec4 ACpySgnF4(vec4 d, vec4 s){ return uintBitsToFloat(uvec4(floatBitsToUint(vec4(d))|(floatBitsToUint(vec4(s))& AU4_x(uint(0x80000000u)))));}
386//
387//    float ASignedF1(float m){ return ASatF1(m * AF1_x(float(uintBitsToFloat(uint(0x7f800000u)))));}
388//    vec2 ASignedF2(vec2 m){ return ASatF2(m * AF2_x(float(uintBitsToFloat(uint(0x7f800000u)))));}
389//    vec3 ASignedF3(vec3 m){ return ASatF3(m * AF3_x(float(uintBitsToFloat(uint(0x7f800000u)))));}
390//    vec4 ASignedF4(vec4 m){ return ASatF4(m * AF4_x(float(uintBitsToFloat(uint(0x7f800000u)))));}
391//
392//     float16_t ACpySgnH1(float16_t d, float16_t s){ return uint16BitsToHalf(uint16_t(halfBitsToUint16(float16_t(d))|(halfBitsToUint16(float16_t(s))& AW1_x(uint16_t(0x8000u)))));}
393//     f16vec2 ACpySgnH2(f16vec2 d, f16vec2 s){ return uint16BitsToHalf(u16vec2(halfBitsToUint16(f16vec2(d))|(halfBitsToUint16(f16vec2(s))& AW2_x(uint16_t(0x8000u)))));}
394//     f16vec3 ACpySgnH3(f16vec3 d, f16vec3 s){ return uint16BitsToHalf(u16vec3(halfBitsToUint16(f16vec3(d))|(halfBitsToUint16(f16vec3(s))& AW3_x(uint16_t(0x8000u)))));}
395//     f16vec4 ACpySgnH4(f16vec4 d, f16vec4 s){ return uint16BitsToHalf(u16vec4(halfBitsToUint16(f16vec4(d))|(halfBitsToUint16(f16vec4(s))& AW4_x(uint16_t(0x8000u)))));}
396//
397//     float16_t ASignedH1(float16_t m){ return ASatH1(m * AH1_x(float16_t(uint16BitsToHalf(uint16_t(0x7c00u)))));}
398//     f16vec2 ASignedH2(f16vec2 m){ return ASatH2(m * AH2_x(float16_t(uint16BitsToHalf(uint16_t(0x7c00u)))));}
399//     f16vec3 ASignedH3(f16vec3 m){ return ASatH3(m * AH3_x(float16_t(uint16BitsToHalf(uint16_t(0x7c00u)))));}
400//     f16vec4 ASignedH4(f16vec4 m){ return ASatH4(m * AH4_x(float16_t(uint16BitsToHalf(uint16_t(0x7c00u)))));}
401//
402//     float16_t APrxLoSqrtH1(float16_t a){ return uint16BitsToHalf(uint16_t((halfBitsToUint16(float16_t(a))>> AW1_x(uint16_t(1)))+ AW1_x(uint16_t(0x1de2))));}
403//     f16vec2 APrxLoSqrtH2(f16vec2 a){ return uint16BitsToHalf(u16vec2((halfBitsToUint16(f16vec2(a))>> AW2_x(uint16_t(1)))+ AW2_x(uint16_t(0x1de2))));}
404//
405//     float16_t APrxLoRcpH1(float16_t a){ return uint16BitsToHalf(uint16_t(AW1_x(uint16_t(0x7784))- halfBitsToUint16(float16_t(a))));}
406//     f16vec2 APrxLoRcpH2(f16vec2 a){ return uint16BitsToHalf(u16vec2(AW2_x(uint16_t(0x7784))- halfBitsToUint16(f16vec2(a))));}
407//
408//     float16_t APrxMedRcpH1(float16_t a){ float16_t b = uint16BitsToHalf(uint16_t(AW1_x(uint16_t(0x778d))- halfBitsToUint16(float16_t(a))));return b *(- b * a + AH1_x(float16_t(2.0)));}
409//     f16vec2 APrxMedRcpH2(f16vec2 a){ f16vec2 b = uint16BitsToHalf(u16vec2(AW2_x(uint16_t(0x778d))- halfBitsToUint16(f16vec2(a))));return b *(- b * a + AH2_x(float16_t(2.0)));}
410//
411//     float16_t APrxLoRsqH1(float16_t a){ return uint16BitsToHalf(uint16_t(AW1_x(uint16_t(0x59a3))-(halfBitsToUint16(float16_t(a))>> AW1_x(uint16_t(1)))));}
412//     f16vec2 APrxLoRsqH2(f16vec2 a){ return uint16BitsToHalf(u16vec2(AW2_x(uint16_t(0x59a3))-(halfBitsToUint16(f16vec2(a))>> AW2_x(uint16_t(1)))));}
413//
414//    float APrxLoSqrtF1(float a){ return uintBitsToFloat(uint((floatBitsToUint(float(a))>> AU1_x(uint(1)))+ AU1_x(uint(0x1fbc4639))));}
415//    float APrxLoRcpF1(float a){ return uintBitsToFloat(uint(AU1_x(uint(0x7ef07ebb))- floatBitsToUint(float(a))));}
416//    float APrxMedRcpF1(float a){ float b = uintBitsToFloat(uint(AU1_x(uint(0x7ef19fff))- floatBitsToUint(float(a))));return b *(- b * a + AF1_x(float(2.0)));}
417//    float APrxLoRsqF1(float a){ return uintBitsToFloat(uint(AU1_x(uint(0x5f347d74))-(floatBitsToUint(float(a))>> AU1_x(uint(1)))));}
418//
419//    float APSinF1(float x){ return x * abs(x)- x;}
420//    float APCosF1(float x){ x = AFractF1(x * AF1_x(float(0.5))+ AF1_x(float(0.75)));x = x * AF1_x(float(2.0))- AF1_x(float(1.0));return APSinF1(x);}
421//
422//     f16vec2 APSinH2(f16vec2 x){ return x * abs(x)- x;}
423//     f16vec2 APCosH2(f16vec2 x){ x = AFractH2(x * AH2_x(float16_t(0.5))+ AH2_x(float16_t(0.75)));x = x * AH2_x(float16_t(2.0))- AH2_x(float16_t(1.0));return APSinH2(x);}
424//
425//    float ATo709F1(float c){ return max(min(c * AF1_x(float(4.5)), AF1_x(float(0.018))), AF1_x(float(1.099))* pow(c, AF1_x(float(0.45)))- AF1_x(float(0.099)));}
426//
427//    float AToGammaF1(float c, float rcpX){ return pow(c, rcpX);}
428//
429//    float AToPqF1(float x){ float p = pow(x, AF1_x(float(0.159302)));
430//   return pow((AF1_x(float(0.835938))+ AF1_x(float(18.8516))* p)/(AF1_x(float(1.0))+ AF1_x(float(18.6875))* p), AF1_x(float(78.8438)));}
431//
432//    float AToSrgbF1(float c){ return max(min(c * AF1_x(float(12.92)), AF1_x(float(0.0031308))), AF1_x(float(1.055))* pow(c, AF1_x(float(0.41666)))- AF1_x(float(0.055)));}
433//
434//    float AToTwoF1(float c){ return sqrt(c);}
435//
436//    float AFrom709F1(float c){ return max(min(c * AF1_x(float(1.0 / 4.5)), AF1_x(float(0.081))),
437//   pow((c + AF1_x(float(0.099)))*(AF1_x(float(1.0))/(AF1_x(float(1.099)))), AF1_x(float(1.0 / 0.45))));}
438//
439//    float AFromGammaF1(float c, float x){ return pow(c, x);}
440//
441//    float AFromPqF1(float x){ float p = pow(x, AF1_x(float(0.0126833)));
442//   return pow(ASatF1(p - AF1_x(float(0.835938)))/(AF1_x(float(18.8516))- AF1_x(float(18.6875))* p), AF1_x(float(6.27739)));}
443//
444//    float AFromSrgbF1(float c){ return max(min(c * AF1_x(float(1.0 / 12.92)), AF1_x(float(0.04045))),
445//   pow((c + AF1_x(float(0.055)))*(AF1_x(float(1.0))/ AF1_x(float(1.055))), AF1_x(float(2.4))));}
446//
447//    float AFromTwoF1(float c){ return c * c;}
448//
449//     f16vec2 ATo709H2(f16vec2 c){ return max(min(c * AH2_x(float16_t(4.5)), AH2_x(float16_t(0.018))), AH2_x(float16_t(1.099))* pow(c, AH2_x(float16_t(0.45)))- AH2_x(float16_t(0.099)));}
450//
451//     f16vec2 AToGammaH2(f16vec2 c, float16_t rcpX){ return pow(c, AH2_x(float16_t(rcpX)));}
452//
453//     f16vec2 AToSrgbH2(f16vec2 c){ return max(min(c * AH2_x(float16_t(12.92)), AH2_x(float16_t(0.0031308))), AH2_x(float16_t(1.055))* pow(c, AH2_x(float16_t(0.41666)))- AH2_x(float16_t(0.055)));}
454//
455//     f16vec2 AToTwoH2(f16vec2 c){ return sqrt(c);}
456//
457//     f16vec2 AFrom709H2(f16vec2 c){ return max(min(c * AH2_x(float16_t(1.0 / 4.5)), AH2_x(float16_t(0.081))),
458//    pow((c + AH2_x(float16_t(0.099)))*(AH2_x(float16_t(1.0))/(AH2_x(float16_t(1.099)))), AH2_x(float16_t(1.0 / 0.45))));}
459//
460//     f16vec2 AFromGammaH2(f16vec2 c, float16_t x){ return pow(c, AH2_x(float16_t(x)));}
461//
462//     f16vec2 AFromSrgbH2(f16vec2 c){ return max(min(c * AH2_x(float16_t(1.0 / 12.92)), AH2_x(float16_t(0.04045))),
463//    pow((c + AH2_x(float16_t(0.055)))*(AH2_x(float16_t(1.0))/ AH2_x(float16_t(1.055))), AH2_x(float16_t(2.4))));}
464//
465//     f16vec2 AFromTwoH2(f16vec2 c){ return c * c;}
466//
467//    uvec2 ARmp8x8(uint a){ return uvec2(ABfe(a, 1u, 3u), ABfiM(ABfe(a, 3u, 3u), a, 1u));}
468//
469//    uvec2 ARmpRed8x8(uint a){ return uvec2(ABfiM(ABfe(a, 2u, 3u), a, 1u), ABfiM(ABfe(a, 3u, 3u), ABfe(a, 1u, 2u), 2u));}
470//
471//    vec2 opAAbsF2(out vec2 d, in vec2 a){ d = abs(a);return d;}
472//    vec3 opAAbsF3(out vec3 d, in vec3 a){ d = abs(a);return d;}
473//    vec4 opAAbsF4(out vec4 d, in vec4 a){ d = abs(a);return d;}
474//
475//    vec2 opAAddF2(out vec2 d, in vec2 a, in vec2 b){ d = a + b;return d;}
476//    vec3 opAAddF3(out vec3 d, in vec3 a, in vec3 b){ d = a + b;return d;}
477//    vec4 opAAddF4(out vec4 d, in vec4 a, in vec4 b){ d = a + b;return d;}
478//
479//    vec2 opACpyF2(out vec2 d, in vec2 a){ d = a;return d;}
480//    vec3 opACpyF3(out vec3 d, in vec3 a){ d = a;return d;}
481//    vec4 opACpyF4(out vec4 d, in vec4 a){ d = a;return d;}
482//
483//    vec2 opALerpF2(out vec2 d, in vec2 a, in vec2 b, in vec2 c){ d = ALerpF2(a, b, c);return d;}
484//    vec3 opALerpF3(out vec3 d, in vec3 a, in vec3 b, in vec3 c){ d = ALerpF3(a, b, c);return d;}
485//    vec4 opALerpF4(out vec4 d, in vec4 a, in vec4 b, in vec4 c){ d = ALerpF4(a, b, c);return d;}
486//
487//    vec2 opALerpOneF2(out vec2 d, in vec2 a, in vec2 b, float c){ d = ALerpF2(a, b, AF2_x(float(c)));return d;}
488//    vec3 opALerpOneF3(out vec3 d, in vec3 a, in vec3 b, float c){ d = ALerpF3(a, b, AF3_x(float(c)));return d;}
489//    vec4 opALerpOneF4(out vec4 d, in vec4 a, in vec4 b, float c){ d = ALerpF4(a, b, AF4_x(float(c)));return d;}
490//
491//    vec2 opAMaxF2(out vec2 d, in vec2 a, in vec2 b){ d = max(a, b);return d;}
492//    vec3 opAMaxF3(out vec3 d, in vec3 a, in vec3 b){ d = max(a, b);return d;}
493//    vec4 opAMaxF4(out vec4 d, in vec4 a, in vec4 b){ d = max(a, b);return d;}
494//
495//    vec2 opAMinF2(out vec2 d, in vec2 a, in vec2 b){ d = min(a, b);return d;}
496//    vec3 opAMinF3(out vec3 d, in vec3 a, in vec3 b){ d = min(a, b);return d;}
497//    vec4 opAMinF4(out vec4 d, in vec4 a, in vec4 b){ d = min(a, b);return d;}
498//
499//    vec2 opAMulF2(out vec2 d, in vec2 a, in vec2 b){ d = a * b;return d;}
500//    vec3 opAMulF3(out vec3 d, in vec3 a, in vec3 b){ d = a * b;return d;}
501//    vec4 opAMulF4(out vec4 d, in vec4 a, in vec4 b){ d = a * b;return d;}
502//
503//    vec2 opAMulOneF2(out vec2 d, in vec2 a, float b){ d = a * AF2_x(float(b));return d;}
504//    vec3 opAMulOneF3(out vec3 d, in vec3 a, float b){ d = a * AF3_x(float(b));return d;}
505//    vec4 opAMulOneF4(out vec4 d, in vec4 a, float b){ d = a * AF4_x(float(b));return d;}
506//
507//    vec2 opANegF2(out vec2 d, in vec2 a){ d = - a;return d;}
508//    vec3 opANegF3(out vec3 d, in vec3 a){ d = - a;return d;}
509//    vec4 opANegF4(out vec4 d, in vec4 a){ d = - a;return d;}
510//
511//    vec2 opARcpF2(out vec2 d, in vec2 a){ d = ARcpF2(a);return d;}
512//    vec3 opARcpF3(out vec3 d, in vec3 a){ d = ARcpF3(a);return d;}
513//    vec4 opARcpF4(out vec4 d, in vec4 a){ d = ARcpF4(a);return d;}
514//
515// #line 70 "shaders/src/GenerateMipmap.comp"
516//
517// shared f16vec4 spd_intermediate[16][16];
518//
519// shared uint spd_counter;
520//
521//   f16vec4 SpdLoadSourceImageH(ivec2 p)
522// {
523//      vec2 textureCoord = p * params . invSrcExtent + params . invSrcExtent;
524//    return f16vec4(texture(src, textureCoord));
525// }
526//
527//   f16vec4 SpdLoadH(ivec2 p)
528// {
529//     return f16vec4(0);
530// }
531//
532// void SpdStoreH(ivec2 p, f16vec4 value, uint mip)
533// {
534//     imageStore(dst[mip], p, vec4(value));
535// }
536//
537//   f16vec4 SpdLoadIntermediateH(uint x, uint y)
538// {
539//     return spd_intermediate[x][y];
540// }
541// void SpdStoreIntermediateH(uint x, uint y, f16vec4 value)
542// {
543//     spd_intermediate[x][y]= value;
544// }
545//
546//   f16vec4 SpdReduce4H(f16vec4 v0, f16vec4 v1, f16vec4 v2, f16vec4 v3)
547// {
548//     return(v0 + v1 + v2 + v3)* float16_t(0.25);
549// }
550//
551// #line 1 "shaders/src/third_party/ffx_spd/ffx_spd.h"
552//
553//     vec4 SpdLoadSourceImage(ivec2 p){ return vec4(0.0, 0.0, 0.0, 0.0);}
554//     vec4 SpdLoad(ivec2 p){ return vec4(0.0, 0.0, 0.0, 0.0);}
555//   void SpdStore(ivec2 p, vec4 value, uint mip){ }
556//     vec4 SpdLoadIntermediate(uint x, uint y){ return vec4(0.0, 0.0, 0.0, 0.0);}
557//   void SpdStoreIntermediate(uint x, uint y, vec4 value){ }
558//     vec4 SpdReduce4(vec4 v0, vec4 v1, vec4 v2, vec4 v3){ return vec4(0.0, 0.0, 0.0, 0.0);}
559//
560// void SpdWorkgroupShuffleBarrier(){
561//
562//     barrier();
563//
564// }
565//
566// bool SpdExitWorkgroup(uint numWorkGroups, uint localInvocationIndex)
567// {
568//
569//     if(localInvocationIndex == 0)
570//     {
571//                                   ;
572//     }
573//     SpdWorkgroupShuffleBarrier();
574//     return(0 !=(numWorkGroups - 1));
575// }
576//
577//   vec4 SpdReduceQuad(vec4 v)
578// {
579//
580//     return AF4_x(0.0);
581// }
582//
583//   vec4 SpdReduceIntermediate(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
584// {
585//       vec4 v0 = SpdLoadIntermediate(i0 . x, i0 . y);
586//       vec4 v1 = SpdLoadIntermediate(i1 . x, i1 . y);
587//       vec4 v2 = SpdLoadIntermediate(i2 . x, i2 . y);
588//       vec4 v3 = SpdLoadIntermediate(i3 . x, i3 . y);
589//     return SpdReduce4(v0, v1, v2, v3);
590// }
591//
592//   vec4 SpdReduceLoad4(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
593// {
594//       vec4 v0 = SpdLoad(ivec2(i0));
595//       vec4 v1 = SpdLoad(ivec2(i1));
596//       vec4 v2 = SpdLoad(ivec2(i2));
597//       vec4 v3 = SpdLoad(ivec2(i3));
598//     return SpdReduce4(v0, v1, v2, v3);
599// }
600//
601//   vec4 SpdReduceLoad4(uvec2 base)
602// {
603//     return SpdReduceLoad4(
604//           uvec2(base + uvec2(0, 0)),
605//           uvec2(base + uvec2(0, 1)),
606//           uvec2(base + uvec2(1, 0)),
607//           uvec2(base + uvec2(1, 1)));
608// }
609//
610//   vec4 SpdReduceLoadSourceImage4(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
611// {
612//       vec4 v0 = SpdLoadSourceImage(ivec2(i0));
613//       vec4 v1 = SpdLoadSourceImage(ivec2(i1));
614//       vec4 v2 = SpdLoadSourceImage(ivec2(i2));
615//       vec4 v3 = SpdLoadSourceImage(ivec2(i3));
616//     return SpdReduce4(v0, v1, v2, v3);
617// }
618//
619//   vec4 SpdReduceLoadSourceImage4(uvec2 base)
620// {
621//
622//     return SpdLoadSourceImage(ivec2(base));
623//
624// }
625//
626// void SpdDownsampleMips_0_1_Intrinsics(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
627// {
628//       vec4 v[4];
629//
630//        ivec2 tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2);
631//        ivec2 pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y);
632//     v[0]= SpdReduceLoadSourceImage4(tex);
633//     SpdStore(pix, v[0], 0);
634//
635//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2);
636//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y);
637//     v[1]= SpdReduceLoadSourceImage4(tex);
638//     SpdStore(pix, v[1], 0);
639//
640//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2 + 32);
641//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y + 16);
642//     v[2]= SpdReduceLoadSourceImage4(tex);
643//     SpdStore(pix, v[2], 0);
644//
645//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2 + 32);
646//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y + 16);
647//     v[3]= SpdReduceLoadSourceImage4(tex);
648//     SpdStore(pix, v[3], 0);
649//
650//     if(mip <= 1)
651//         return;
652//
653//     v[0]= SpdReduceQuad(v[0]);
654//     v[1]= SpdReduceQuad(v[1]);
655//     v[2]= SpdReduceQuad(v[2]);
656//     v[3]= SpdReduceQuad(v[3]);
657//
658//     if((localInvocationIndex % 4)== 0)
659//     {
660//         SpdStore(ivec2(workGroupID . xy * 16)+
661//                ivec2(x / 2, y / 2), v[0], 1);
662//         SpdStoreIntermediate(
663//             x / 2, y / 2, v[0]);
664//
665//         SpdStore(ivec2(workGroupID . xy * 16)+
666//                ivec2(x / 2 + 8, y / 2), v[1], 1);
667//         SpdStoreIntermediate(
668//             x / 2 + 8, y / 2, v[1]);
669//
670//         SpdStore(ivec2(workGroupID . xy * 16)+
671//                ivec2(x / 2, y / 2 + 8), v[2], 1);
672//         SpdStoreIntermediate(
673//             x / 2, y / 2 + 8, v[2]);
674//
675//         SpdStore(ivec2(workGroupID . xy * 16)+
676//                ivec2(x / 2 + 8, y / 2 + 8), v[3], 1);
677//         SpdStoreIntermediate(
678//             x / 2 + 8, y / 2 + 8, v[3]);
679//     }
680// }
681//
682// void SpdDownsampleMips_0_1_LDS(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
683// {
684//       vec4 v[4];
685//
686//        ivec2 tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2);
687//        ivec2 pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y);
688//     v[0]= SpdReduceLoadSourceImage4(tex);
689//     SpdStore(pix, v[0], 0);
690//
691//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2);
692//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y);
693//     v[1]= SpdReduceLoadSourceImage4(tex);
694//     SpdStore(pix, v[1], 0);
695//
696//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2 + 32);
697//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y + 16);
698//     v[2]= SpdReduceLoadSourceImage4(tex);
699//     SpdStore(pix, v[2], 0);
700//
701//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2 + 32);
702//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y + 16);
703//     v[3]= SpdReduceLoadSourceImage4(tex);
704//     SpdStore(pix, v[3], 0);
705//
706//     if(mip <= 1)
707//         return;
708//
709//     for(int i = 0;i < 4;i ++)
710//     {
711//         SpdStoreIntermediate(x, y, v[i]);
712//         SpdWorkgroupShuffleBarrier();
713//         if(localInvocationIndex < 64)
714//         {
715//             v[i]= SpdReduceIntermediate(
716//                   uvec2(x * 2 + 0, y * 2 + 0),
717//                   uvec2(x * 2 + 1, y * 2 + 0),
718//                   uvec2(x * 2 + 0, y * 2 + 1),
719//                   uvec2(x * 2 + 1, y * 2 + 1)
720//             );
721//             SpdStore(ivec2(workGroupID . xy * 16)+ ivec2(x +(i % 2)* 8, y +(i / 2)* 8), v[i], 1);
722//         }
723//         SpdWorkgroupShuffleBarrier();
724//     }
725//
726//     if(localInvocationIndex < 64)
727//     {
728//         SpdStoreIntermediate(x + 0, y + 0, v[0]);
729//         SpdStoreIntermediate(x + 8, y + 0, v[1]);
730//         SpdStoreIntermediate(x + 0, y + 8, v[2]);
731//         SpdStoreIntermediate(x + 8, y + 8, v[3]);
732//     }
733// }
734//
735// void SpdDownsampleMips_0_1(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
736// {
737//
738//     SpdDownsampleMips_0_1_LDS(x, y, workGroupID, localInvocationIndex, mip);
739//
740// }
741//
742// void SpdDownsampleMip_2(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
743// {
744//
745//     if(localInvocationIndex < 64)
746//     {
747//           vec4 v = SpdReduceIntermediate(
748//               uvec2(x * 2 + 0 + 0, y * 2 + 0),
749//               uvec2(x * 2 + 0 + 1, y * 2 + 0),
750//               uvec2(x * 2 + 0 + 0, y * 2 + 1),
751//               uvec2(x * 2 + 0 + 1, y * 2 + 1)
752//         );
753//         SpdStore(ivec2(workGroupID . xy * 8)+ ivec2(x, y), v, mip);
754//
755//         SpdStoreIntermediate(x * 2 + y % 2, y * 2, v);
756//     }
757//
758// }
759//
760// void SpdDownsampleMip_3(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
761// {
762//
763//     if(localInvocationIndex < 16)
764//     {
765//
766//           vec4 v = SpdReduceIntermediate(
767//               uvec2(x * 4 + 0 + 0, y * 4 + 0),
768//               uvec2(x * 4 + 2 + 0, y * 4 + 0),
769//               uvec2(x * 4 + 0 + 1, y * 4 + 2),
770//               uvec2(x * 4 + 2 + 1, y * 4 + 2)
771//         );
772//         SpdStore(ivec2(workGroupID . xy * 4)+ ivec2(x, y), v, mip);
773//
774//         SpdStoreIntermediate(x * 4 + y, y * 4, v);
775//     }
776//
777// }
778//
779// void SpdDownsampleMip_4(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
780// {
781//
782//     if(localInvocationIndex < 4)
783//     {
784//
785//           vec4 v = SpdReduceIntermediate(
786//               uvec2(x * 8 + 0 + 0 + y * 2, y * 8 + 0),
787//               uvec2(x * 8 + 4 + 0 + y * 2, y * 8 + 0),
788//               uvec2(x * 8 + 0 + 1 + y * 2, y * 8 + 4),
789//               uvec2(x * 8 + 4 + 1 + y * 2, y * 8 + 4)
790//         );
791//         SpdStore(ivec2(workGroupID . xy * 2)+ ivec2(x, y), v, mip);
792//
793//         SpdStoreIntermediate(x + y * 2, 0, v);
794//     }
795//
796// }
797//
798// void SpdDownsampleMip_5(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
799// {
800//
801//     if(localInvocationIndex < 1)
802//     {
803//
804//           vec4 v = SpdReduceIntermediate(
805//               uvec2(0, 0),
806//               uvec2(1, 0),
807//               uvec2(2, 0),
808//               uvec2(3, 0)
809//         );
810//         SpdStore(ivec2(workGroupID . xy), v, mip);
811//     }
812//
813// }
814//
815// void SpdDownsampleMips_6_7(uint x, uint y, uint mips)
816// {
817//        ivec2 tex = ivec2(x * 4 + 0, y * 4 + 0);
818//        ivec2 pix = ivec2(x * 2 + 0, y * 2 + 0);
819//       vec4 v0 = SpdReduceLoad4(tex);
820//     SpdStore(pix, v0, 6);
821//
822//     tex = ivec2(x * 4 + 2, y * 4 + 0);
823//     pix = ivec2(x * 2 + 1, y * 2 + 0);
824//       vec4 v1 = SpdReduceLoad4(tex);
825//     SpdStore(pix, v1, 6);
826//
827//     tex = ivec2(x * 4 + 0, y * 4 + 2);
828//     pix = ivec2(x * 2 + 0, y * 2 + 1);
829//       vec4 v2 = SpdReduceLoad4(tex);
830//     SpdStore(pix, v2, 6);
831//
832//     tex = ivec2(x * 4 + 2, y * 4 + 2);
833//     pix = ivec2(x * 2 + 1, y * 2 + 1);
834//       vec4 v3 = SpdReduceLoad4(tex);
835//     SpdStore(pix, v3, 6);
836//
837//     if(mips <= 7)return;
838//
839//       vec4 v = SpdReduce4(v0, v1, v2, v3);
840//     SpdStore(ivec2(x, y), v, 7);
841//     SpdStoreIntermediate(x, y, v);
842// }
843//
844// void SpdDownsampleNextFour(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint baseMip, uint mips)
845// {
846//     if(mips <= baseMip)return;
847//     SpdWorkgroupShuffleBarrier();
848//     SpdDownsampleMip_2(x, y, workGroupID, localInvocationIndex, baseMip);
849//
850//     if(mips <= baseMip + 1)return;
851//     SpdWorkgroupShuffleBarrier();
852//     SpdDownsampleMip_3(x, y, workGroupID, localInvocationIndex, baseMip + 1);
853//
854//     if(mips <= baseMip + 2)return;
855//     SpdWorkgroupShuffleBarrier();
856//     SpdDownsampleMip_4(x, y, workGroupID, localInvocationIndex, baseMip + 2);
857//
858//     if(mips <= baseMip + 3)return;
859//     SpdWorkgroupShuffleBarrier();
860//     SpdDownsampleMip_5(x, y, workGroupID, localInvocationIndex, baseMip + 3);
861// }
862//
863// void SpdDownsample(
864//       uvec2 workGroupID,
865//       uint localInvocationIndex,
866//       uint mips,
867//       uint numWorkGroups
868// ){
869//       uvec2 sub_xy = ARmpRed8x8(localInvocationIndex % 64);
870//       uint x = sub_xy . x + 8 *((localInvocationIndex >> 6)% 2);
871//       uint y = sub_xy . y + 8 *((localInvocationIndex >> 7));
872//     SpdDownsampleMips_0_1(x, y, workGroupID, localInvocationIndex, mips);
873//
874//     SpdDownsampleNextFour(x, y, workGroupID, localInvocationIndex, 2, mips);
875//
876//     if(mips <= 6)return;
877//
878//     if(SpdExitWorkgroup(numWorkGroups, localInvocationIndex))return;
879//
880//     SpdDownsampleMips_6_7(x, y, mips);
881//
882//     SpdDownsampleNextFour(x, y, uvec2(0, 0), localInvocationIndex, 8, mips);
883// }
884//
885// #extension GL_EXT_shader_subgroup_extended_types_float16 : require
886//
887//   f16vec4 SpdReduceQuadH(f16vec4 v)
888// {
889//
890//     return f16vec4(0.0, 0.0, 0.0, 0.0);
891//
892// }
893//
894//   f16vec4 SpdReduceIntermediateH(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
895// {
896//       f16vec4 v0 = SpdLoadIntermediateH(i0 . x, i0 . y);
897//       f16vec4 v1 = SpdLoadIntermediateH(i1 . x, i1 . y);
898//       f16vec4 v2 = SpdLoadIntermediateH(i2 . x, i2 . y);
899//       f16vec4 v3 = SpdLoadIntermediateH(i3 . x, i3 . y);
900//     return SpdReduce4H(v0, v1, v2, v3);
901// }
902//
903//   f16vec4 SpdReduceLoad4H(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
904// {
905//       f16vec4 v0 = SpdLoadH(ivec2(i0));
906//       f16vec4 v1 = SpdLoadH(ivec2(i1));
907//       f16vec4 v2 = SpdLoadH(ivec2(i2));
908//       f16vec4 v3 = SpdLoadH(ivec2(i3));
909//     return SpdReduce4H(v0, v1, v2, v3);
910// }
911//
912//   f16vec4 SpdReduceLoad4H(uvec2 base)
913// {
914//     return SpdReduceLoad4H(
915//           uvec2(base + uvec2(0, 0)),
916//           uvec2(base + uvec2(0, 1)),
917//           uvec2(base + uvec2(1, 0)),
918//           uvec2(base + uvec2(1, 1)));
919// }
920//
921//   f16vec4 SpdReduceLoadSourceImage4H(uvec2 i0, uvec2 i1, uvec2 i2, uvec2 i3)
922// {
923//       f16vec4 v0 = SpdLoadSourceImageH(ivec2(i0));
924//       f16vec4 v1 = SpdLoadSourceImageH(ivec2(i1));
925//       f16vec4 v2 = SpdLoadSourceImageH(ivec2(i2));
926//       f16vec4 v3 = SpdLoadSourceImageH(ivec2(i3));
927//     return SpdReduce4H(v0, v1, v2, v3);
928// }
929//
930//   f16vec4 SpdReduceLoadSourceImage4H(uvec2 base)
931// {
932//
933//     return SpdLoadSourceImageH(ivec2(base));
934//
935// }
936//
937// void SpdDownsampleMips_0_1_IntrinsicsH(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mips)
938// {
939//       f16vec4 v[4];
940//
941//        ivec2 tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2);
942//        ivec2 pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y);
943//     v[0]= SpdReduceLoadSourceImage4H(tex);
944//     SpdStoreH(pix, v[0], 0);
945//
946//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2);
947//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y);
948//     v[1]= SpdReduceLoadSourceImage4H(tex);
949//     SpdStoreH(pix, v[1], 0);
950//
951//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2 + 32);
952//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y + 16);
953//     v[2]= SpdReduceLoadSourceImage4H(tex);
954//     SpdStoreH(pix, v[2], 0);
955//
956//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2 + 32);
957//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y + 16);
958//     v[3]= SpdReduceLoadSourceImage4H(tex);
959//     SpdStoreH(pix, v[3], 0);
960//
961//     if(mips <= 1)
962//         return;
963//
964//     v[0]= SpdReduceQuadH(v[0]);
965//     v[1]= SpdReduceQuadH(v[1]);
966//     v[2]= SpdReduceQuadH(v[2]);
967//     v[3]= SpdReduceQuadH(v[3]);
968//
969//     if((localInvocationIndex % 4)== 0)
970//     {
971//         SpdStoreH(ivec2(workGroupID . xy * 16)+ ivec2(x / 2, y / 2), v[0], 1);
972//         SpdStoreIntermediateH(x / 2, y / 2, v[0]);
973//
974//         SpdStoreH(ivec2(workGroupID . xy * 16)+ ivec2(x / 2 + 8, y / 2), v[1], 1);
975//         SpdStoreIntermediateH(x / 2 + 8, y / 2, v[1]);
976//
977//         SpdStoreH(ivec2(workGroupID . xy * 16)+ ivec2(x / 2, y / 2 + 8), v[2], 1);
978//         SpdStoreIntermediateH(x / 2, y / 2 + 8, v[2]);
979//
980//         SpdStoreH(ivec2(workGroupID . xy * 16)+ ivec2(x / 2 + 8, y / 2 + 8), v[3], 1);
981//         SpdStoreIntermediateH(x / 2 + 8, y / 2 + 8, v[3]);
982//     }
983// }
984//
985// void SpdDownsampleMips_0_1_LDSH(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mips)
986// {
987//       f16vec4 v[4];
988//
989//        ivec2 tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2);
990//        ivec2 pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y);
991//     v[0]= SpdReduceLoadSourceImage4H(tex);
992//     SpdStoreH(pix, v[0], 0);
993//
994//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2);
995//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y);
996//     v[1]= SpdReduceLoadSourceImage4H(tex);
997//     SpdStoreH(pix, v[1], 0);
998//
999//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2, y * 2 + 32);
1000//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x, y + 16);
1001//     v[2]= SpdReduceLoadSourceImage4H(tex);
1002//     SpdStoreH(pix, v[2], 0);
1003//
1004//     tex = ivec2(workGroupID . xy * 64)+ ivec2(x * 2 + 32, y * 2 + 32);
1005//     pix = ivec2(workGroupID . xy * 32)+ ivec2(x + 16, y + 16);
1006//     v[3]= SpdReduceLoadSourceImage4H(tex);
1007//     SpdStoreH(pix, v[3], 0);
1008//
1009//     if(mips <= 1)
1010//         return;
1011//
1012//     for(int i = 0;i < 4;i ++)
1013//     {
1014//         SpdStoreIntermediateH(x, y, v[i]);
1015//         SpdWorkgroupShuffleBarrier();
1016//         if(localInvocationIndex < 64)
1017//         {
1018//             v[i]= SpdReduceIntermediateH(
1019//                   uvec2(x * 2 + 0, y * 2 + 0),
1020//                   uvec2(x * 2 + 1, y * 2 + 0),
1021//                   uvec2(x * 2 + 0, y * 2 + 1),
1022//                   uvec2(x * 2 + 1, y * 2 + 1)
1023//             );
1024//             SpdStoreH(ivec2(workGroupID . xy * 16)+ ivec2(x +(i % 2)* 8, y +(i / 2)* 8), v[i], 1);
1025//         }
1026//         SpdWorkgroupShuffleBarrier();
1027//     }
1028//
1029//     if(localInvocationIndex < 64)
1030//     {
1031//         SpdStoreIntermediateH(x + 0, y + 0, v[0]);
1032//         SpdStoreIntermediateH(x + 8, y + 0, v[1]);
1033//         SpdStoreIntermediateH(x + 0, y + 8, v[2]);
1034//         SpdStoreIntermediateH(x + 8, y + 8, v[3]);
1035//     }
1036// }
1037//
1038// void SpdDownsampleMips_0_1H(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mips)
1039// {
1040//
1041//     SpdDownsampleMips_0_1_LDSH(x, y, workGroupID, localInvocationIndex, mips);
1042//
1043// }
1044//
1045// void SpdDownsampleMip_2H(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
1046// {
1047//
1048//     if(localInvocationIndex < 64)
1049//     {
1050//           f16vec4 v = SpdReduceIntermediateH(
1051//               uvec2(x * 2 + 0 + 0, y * 2 + 0),
1052//               uvec2(x * 2 + 0 + 1, y * 2 + 0),
1053//               uvec2(x * 2 + 0 + 0, y * 2 + 1),
1054//               uvec2(x * 2 + 0 + 1, y * 2 + 1)
1055//         );
1056//         SpdStoreH(ivec2(workGroupID . xy * 8)+ ivec2(x, y), v, mip);
1057//
1058//         SpdStoreIntermediateH(x * 2 + y % 2, y * 2, v);
1059//     }
1060//
1061// }
1062//
1063// void SpdDownsampleMip_3H(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
1064// {
1065//
1066//     if(localInvocationIndex < 16)
1067//     {
1068//
1069//           f16vec4 v = SpdReduceIntermediateH(
1070//               uvec2(x * 4 + 0 + 0, y * 4 + 0),
1071//               uvec2(x * 4 + 2 + 0, y * 4 + 0),
1072//               uvec2(x * 4 + 0 + 1, y * 4 + 2),
1073//               uvec2(x * 4 + 2 + 1, y * 4 + 2)
1074//         );
1075//         SpdStoreH(ivec2(workGroupID . xy * 4)+ ivec2(x, y), v, mip);
1076//
1077//         SpdStoreIntermediateH(x * 4 + y, y * 4, v);
1078//     }
1079//
1080// }
1081//
1082// void SpdDownsampleMip_4H(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
1083// {
1084//
1085//     if(localInvocationIndex < 4)
1086//     {
1087//
1088//           f16vec4 v = SpdReduceIntermediateH(
1089//               uvec2(x * 8 + 0 + 0 + y * 2, y * 8 + 0),
1090//               uvec2(x * 8 + 4 + 0 + y * 2, y * 8 + 0),
1091//               uvec2(x * 8 + 0 + 1 + y * 2, y * 8 + 4),
1092//               uvec2(x * 8 + 4 + 1 + y * 2, y * 8 + 4)
1093//         );
1094//         SpdStoreH(ivec2(workGroupID . xy * 2)+ ivec2(x, y), v, mip);
1095//
1096//         SpdStoreIntermediateH(x + y * 2, 0, v);
1097//     }
1098//
1099// }
1100//
1101// void SpdDownsampleMip_5H(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint mip)
1102// {
1103//
1104//     if(localInvocationIndex < 1)
1105//     {
1106//
1107//           f16vec4 v = SpdReduceIntermediateH(
1108//               uvec2(0, 0),
1109//               uvec2(1, 0),
1110//               uvec2(2, 0),
1111//               uvec2(3, 0)
1112//         );
1113//         SpdStoreH(ivec2(workGroupID . xy), v, mip);
1114//     }
1115//
1116// }
1117//
1118// void SpdDownsampleMips_6_7H(uint x, uint y, uint mips)
1119// {
1120//        ivec2 tex = ivec2(x * 4 + 0, y * 4 + 0);
1121//        ivec2 pix = ivec2(x * 2 + 0, y * 2 + 0);
1122//       f16vec4 v0 = SpdReduceLoad4H(tex);
1123//     SpdStoreH(pix, v0, 6);
1124//
1125//     tex = ivec2(x * 4 + 2, y * 4 + 0);
1126//     pix = ivec2(x * 2 + 1, y * 2 + 0);
1127//       f16vec4 v1 = SpdReduceLoad4H(tex);
1128//     SpdStoreH(pix, v1, 6);
1129//
1130//     tex = ivec2(x * 4 + 0, y * 4 + 2);
1131//     pix = ivec2(x * 2 + 0, y * 2 + 1);
1132//       f16vec4 v2 = SpdReduceLoad4H(tex);
1133//     SpdStoreH(pix, v2, 6);
1134//
1135//     tex = ivec2(x * 4 + 2, y * 4 + 2);
1136//     pix = ivec2(x * 2 + 1, y * 2 + 1);
1137//       f16vec4 v3 = SpdReduceLoad4H(tex);
1138//     SpdStoreH(pix, v3, 6);
1139//
1140//     if(mips < 8)return;
1141//
1142//       f16vec4 v = SpdReduce4H(v0, v1, v2, v3);
1143//     SpdStoreH(ivec2(x, y), v, 7);
1144//     SpdStoreIntermediateH(x, y, v);
1145// }
1146//
1147// void SpdDownsampleNextFourH(uint x, uint y, uvec2 workGroupID, uint localInvocationIndex, uint baseMip, uint mips)
1148// {
1149//     if(mips <= baseMip)return;
1150//     SpdWorkgroupShuffleBarrier();
1151//     SpdDownsampleMip_2H(x, y, workGroupID, localInvocationIndex, baseMip);
1152//
1153//     if(mips <= baseMip + 1)return;
1154//     SpdWorkgroupShuffleBarrier();
1155//     SpdDownsampleMip_3H(x, y, workGroupID, localInvocationIndex, baseMip + 1);
1156//
1157//     if(mips <= baseMip + 2)return;
1158//     SpdWorkgroupShuffleBarrier();
1159//     SpdDownsampleMip_4H(x, y, workGroupID, localInvocationIndex, baseMip + 2);
1160//
1161//     if(mips <= baseMip + 3)return;
1162//     SpdWorkgroupShuffleBarrier();
1163//     SpdDownsampleMip_5H(x, y, workGroupID, localInvocationIndex, baseMip + 3);
1164// }
1165//
1166// void SpdDownsampleH(
1167//       uvec2 workGroupID,
1168//       uint localInvocationIndex,
1169//       uint mips,
1170//       uint numWorkGroups
1171// ){
1172//       uvec2 sub_xy = ARmpRed8x8(localInvocationIndex % 64);
1173//       uint x = sub_xy . x + 8 *((localInvocationIndex >> 6)% 2);
1174//       uint y = sub_xy . y + 8 *((localInvocationIndex >> 7));
1175//
1176//     SpdDownsampleMips_0_1H(x, y, workGroupID, localInvocationIndex, mips);
1177//
1178//     SpdDownsampleNextFourH(x, y, workGroupID, localInvocationIndex, 2, mips);
1179//
1180//     if(mips < 7)return;
1181//
1182//     if(SpdExitWorkgroup(numWorkGroups, localInvocationIndex))return;
1183//
1184//     SpdDownsampleMips_6_7H(x, y, mips);
1185//
1186//     SpdDownsampleNextFourH(x, y, uvec2(0, 0), localInvocationIndex, 8, mips);
1187// }
1188//
1189// #line 177 "shaders/src/GenerateMipmap.comp"
1190//
1191// void main()
1192// {
1193//
1194//     SpdDownsampleH(gl_WorkGroupID . xy, gl_LocalInvocationIndex, params . levelCount, 0);
1195//
1196// }
1197