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