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.00000006.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000006[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x97,0xfb,0x6f,0x54,0x45, 14 0x14,0xc7,0xef,0xec,0x6e,0xbb,0x05,0xa4,0x96,0x6c,0xe5,0xb1,0x21,0xa4,0x95,0x0a, 15 0x08,0x58,0x2a,0x22,0x94,0xc7,0x22,0x58,0xa0,0x35,0x22,0x48,0x1b,0x12,0x44,0x7c, 16 0x54,0x51,0xa8,0x3c,0x14,0xd4,0x5f,0xf8,0x41,0x89,0x88,0x6d,0x82,0x81,0x08,0x28, 17 0x8d,0x28,0x8d,0x11,0x22,0x91,0x44,0x50,0x21,0x51,0x40,0x69,0x0c,0x01,0xa3,0x34, 18 0x51,0x1a,0x95,0x06,0xfe,0x02,0x23,0x91,0xa8,0x20,0x2a,0x82,0x73,0xee,0x7c,0x4e, 19 0xf7,0xb8,0x11,0x9b,0x4c,0xee,0x9d,0xef,0x9c,0xef,0x79,0x7c,0xe7,0xcc,0xec,0x6d, 20 0x32,0x31,0x3c,0x1d,0x45,0x2e,0xea,0x1b,0x95,0x44,0xf7,0xb8,0x28,0xfe,0x1b,0x10, 21 0x25,0x22,0x79,0xed,0x17,0x15,0xc7,0xcf,0xfa,0xb9,0x4d,0x73,0xab,0x9f,0x7d,0x6e, 22 0x69,0xf5,0x84,0x3b,0x6b,0x64,0xbd,0x34,0x4a,0xc6,0x76,0xb2,0x76,0x63,0x94,0x8e, 23 0x52,0xfe,0x29,0x63,0x55,0x73,0xcb,0x6a,0xc1,0x47,0xf8,0x71,0xce,0x8f,0x32,0x6f, 24 0x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9f,0x79,0x8e,0x7c,0xfe, 51 0xf4,0xf6,0x53,0xb9,0x27,0x72,0xd4,0x23,0xef,0x0b,0x3c,0x4f,0xb4,0x99,0x41,0x4c, 52 0xf9,0x7b,0x01,0xbd,0x66,0x82,0x37,0x7a,0xf5,0x25,0xa7,0x61,0x2e,0x60,0x6a,0xf7, 53 0x87,0xf7,0xa1,0xbe,0xe4,0x79,0xd1,0x6b,0x21,0x76,0x93,0x5c,0xb0,0x29,0x82,0x33, 54 0xcd,0xd4,0x30,0x8b,0x1a,0xea,0x4c,0x0d,0xb3,0xc1,0xb5,0x86,0x39,0x60,0x5a,0x43, 55 0x83,0xa9,0x61,0x4e,0x7c,0x77,0x45,0x31,0x26,0x71,0xeb,0x4d,0x0d,0xf7,0x12,0xdb, 56 0x99,0x1a,0xe6,0x82,0x6b,0x0d,0x95,0x2e,0x60,0x6a,0x27,0x35,0xa8,0xaf,0x06,0x53, 57 0x43,0xad,0x0b,0x36,0x39,0x38,0xf5,0xa6,0x86,0xf9,0xd4,0x30,0xcf,0xd4,0x70,0x3f, 58 0xb8,0xd6,0xb0,0x00,0x4c,0x6b,0x68,0x32,0x35,0x2c,0x88,0xf3,0x89,0x62,0x4c,0xe2, 59 0x36,0xd2,0x47,0x12,0x77,0x21,0xb1,0x6b,0x5d,0xfe,0xfc,0x4a,0x8e,0x6a,0xdb,0x64, 60 0x72,0x9c,0x8c,0x5d,0x03,0xbc,0x46,0xf2,0x91,0x33,0xfe,0x20,0xe7,0x5b,0x7b,0xee, 61 0x21,0x72,0x5e,0x62,0x7a,0xee,0x61,0xf0,0xf5,0xf4,0xdc,0xa3,0x60,0x93,0x5d,0xe0, 62 0xc9,0x99,0x7f,0x1c,0x5e,0x33,0x3c,0xd1,0x74,0x29,0xb8,0xea,0xfe,0x24,0xdc,0xc8, 63 0x60,0xcb,0xc0,0x5c,0xac,0x43,0x71,0x7c,0x5f,0x2c,0xc7,0x76,0x19,0x3e,0x34,0xc6, 64 0x53,0xc4,0x68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d,0x05,0xbf,0x92,0x97,0x73,0x21,0x57, 78 0xd5,0x68,0xa4,0x0b,0xeb,0x55,0xe4,0xa9,0x1a,0xad,0x47,0xa3,0x04,0xf5,0x66,0x0b, 79 0x34,0x2a,0x25,0xa6,0x3c,0x55,0xa3,0x32,0x17,0x78,0xaa,0xd1,0x10,0xa3,0x91,0xac, 80 0x0d,0xf0,0xa3,0x1c,0x5e,0xb9,0xd1,0x68,0xa0,0xd1,0x68,0x7d,0x81,0x46,0x83,0x5c, 81 0x58,0xb7,0x1a,0x0d,0x76,0x01,0x57,0x8d,0xb2,0xf8,0x14,0xff,0xca,0xcb,0x90,0x4b, 82 0xa6,0xc0,0x66,0x88,0xd1,0x28,0x6b,0x34,0x9a,0xee,0x82,0x5f,0xc9,0x2b,0x43,0xae, 83 0xaa,0xd1,0x68,0x17,0xd6,0x45,0xab,0x04,0xfe,0xf4,0xec,0xad,0xa5,0x17,0xc5,0x6e, 84 0x06,0xbd,0xd6,0x04,0x27,0xeb,0xf2,0x67,0xfe,0x65,0xce,0xfc,0x06,0x73,0xe6,0x37, 85 0x82,0xeb,0x99,0x7f,0x05,0x4c,0xcf,0x7c,0x9b,0x39,0x87,0xb2,0xd6,0xea,0xc7,0x56, 86 0xe2,0x6e,0x35,0xf7,0xc9,0x76,0x7c,0x6f,0x33,0xbe,0x5f,0x07,0x57,0xdf,0x6f,0x80, 87 0xa9,0xef,0x76,0xe3,0x5b,0xd6,0x76,0xf8,0xd1,0x8e,0xef,0x1d,0xa6,0x0f,0xde,0xa4, 88 0x2e,0xf9,0xa6,0x38,0x8c,0xaf,0xb7,0xc0,0x77,0xa2,0x85,0xf2,0xda,0xd1,0x42,0x6c, 89 0xde,0x26,0xe6,0x56,0xec,0x77,0x10,0xb7,0xc3,0xc4,0x15,0x9b,0x5d,0x7e,0x74,0xc0, 90 0xdf,0x65,0xe2,0xbe,0x63,0xe2,0xce,0xf7,0x5f,0x49,0xf2,0xfd,0xf5,0x2e,0xd8,0x0c, 91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xdf,0x90,0xcf,0x44,0x93,0xcf,0xb7,0xe0,0x9a,0x4f,0xb7,0xc9, 105 0x47,0xd6,0x4e,0xfb,0xd1,0x4d,0x9c,0xd3,0x26,0x9f,0x09,0xe4,0x33,0xcb,0xdc,0x53, 106 0x6a,0xd7,0x6d,0xf2,0x99,0xed,0x82,0x4d,0x17,0x9c,0xd3,0x26,0x9f,0xef,0xc9,0xe7, 107 0x80,0xc9,0xe7,0x07,0x70,0xcd,0xa7,0xc7,0xe4,0x23,0x6b,0x67,0xfc,0xe8,0x21,0xce, 108 0x19,0x93,0xcf,0x44,0x17,0xfe,0x67,0x98,0xed,0xf2,0xfd,0xaa,0x76,0x3d,0x26,0x9f, 109 0x06,0x17,0x6c,0xba,0xe1,0x9c,0xc1,0xb6,0x13,0xdb,0x63,0xe6,0x3b,0xed,0x0b,0xf4, 110 0x4e,0x9a,0x38,0x35,0x2e,0x8f,0x47,0x05,0xdc,0x4e,0x13,0xa7,0xde,0x85,0x58,0x3d, 111 0x70,0x8e,0x61,0x7b,0x08,0xdb,0x83,0x9c,0x3b,0xb1,0xfd,0x14,0x7f,0xfb,0x39,0x77, 112 0x69,0xce,0x6a,0xb2,0x80,0x73,0xc8,0xf8,0x9f,0xe3,0x42,0x8c,0x4e,0xf8,0xe2,0x6f, 113 0xba,0x67,0x9c,0x63,0xed,0x6f,0xdf,0x25,0xb5,0x7e,0xfc,0x03,0xae,0x53,0x3c,0x67, 114 0x88,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 ivec4 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// ivec4 dstValue = ivec4(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