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