// GENERATED FILE - DO NOT EDIT. // Generated by gen_vk_internal_shaders.py. // // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // shaders/gen/ImageCopy.frag.00000020.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000020[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0xe9,0x6f,0x95,0x45, 0x14,0xc6,0xdf,0xb9,0xb7,0x1b,0x5b,0x2d,0xa1,0x50,0x51,0x42,0x5a,0x29,0x05,0x69, 0x29,0x7b,0x81,0x96,0xcb,0x12,0xa4,0xad,0x42,0x40,0x68,0x34,0x41,0x44,0x52,0x64, 0x11,0xa9,0xb8,0x00,0xb1,0xa8,0x34,0xc5,0x16,0x23,0xc4,0x0f,0x9a,0x88,0x0a,0x89, 0x7e,0xf0,0x8b,0x26,0x45,0xe0,0x83,0xa0,0x52,0x0d,0x41,0x23,0x60,0xa2,0x34,0x51, 0x6a,0xe0,0x1f,0xd0,0x48,0x24,0x2e,0x84,0x08,0x82,0xe2,0x9c,0x99,0xdf,0xe9,0x3d, 0x36,0x2e,0x4d,0x26,0xef,0x3b,0xcf,0x9c,0xe7,0x2c,0xcf,0x9c,0x99,0xf7,0x42,0x3a, 0x35,0x26,0x3f,0x49,0x5c,0x32,0x30,0x29,0x48,0x16,0xbb,0x24,0xfc,0x0d,0x4d,0x52, 0x89,0xbc,0x0e,0x4a,0xf2,0xc2,0xb3,0x61,0x49,0xd3,0x92,0xea,0xad,0xdb,0xd6,0x55, 0x4f,0x9f,0x31,0x59,0xd6,0x0b,0x93,0x74,0xb0,0x93,0xb5,0x5b,0x92,0xfc,0x24,0xc7, 0x3f,0x65,0x3c,0xd6,0xbc,0x69,0x8b,0xe0,0x15,0x7e,0x5c,0xf0,0xa3,0xc8,0xdb,0x09, 0x9e,0x2f,0x3e,0xfc,0x5b,0x45,0xf0,0x29,0x9c,0x24,0x69,0x4c,0x72,0x93,0xaa,0x18, 0x2e,0x19,0xc3,0x53,0x31,0x07,0x56,0x60,0xb0,0x14,0x58,0x91,0xc1,0xd2,0x60,0xc5, 0x06,0xcb,0x01,0xbb,0xd5,0x60,0xb9,0x60,0xa3,0x0c,0x96,0x07,0x56,0x6a,0xb0,0x7c, 0xb0,0x72,0x83,0x15,0x80,0x8d,0x37,0xd8,0x00,0xb0,0x2a,0x83,0x0d,0x04,0x9b,0x6c, 0xb0,0x41,0x60,0xd3,0x0d,0x36,0x18,0x6c,0x96,0xc1,0x86,0x80,0xcd,0x09,0x3a,0xa5, 0xfb,0xea,0x15,0xcd,0x56,0xf9,0xe7,0x1d,0xe8,0xa3,0xf3,0x32,0x33,0x17,0x9d,0x47, 0x33,0x1f,0xe6,0x59,0xa9,0xb0,0x9e,0x0e,0xda,0xc8,0xfb,0x08,0xff,0x96,0x47,0x9d, 0x95,0xde,0x3e,0x8f,0x78,0xdf,0x1d,0x1a,0x9b,0x29,0xf6,0x16,0x85,0x06,0x17,0xcd, 0x0e,0x35,0x34,0x67,0x74,0x2e,0x7a,0x1d,0xd8,0x3f,0x72,0xfe,0x70,0x3f,0x2f,0xc5, 0x87,0xec,0x4d,0x89,0x9f,0x97,0x31,0x4f,0x31,0x2f,0x47,0xd3,0x9c,0x80,0xe7,0x24, 0x63,0xb1,0x15,0xbc,0x8e,0x79,0x85,0xe1,0x8f,0xc3,0x5e,0xf8,0xe2,0xbf,0x12,0x7f, 0x49,0xa8,0xa7,0x28,0x68,0x50,0xc6,0x28,0xed,0xcb,0xff,0xbf,0x47,0x69,0xdf,0x33, 0x27,0x99,0xc8,0x3e,0x55,0x11,0x5f,0xe6,0xd5,0x60,0x95,0xd4,0x33,0x89,0x7c,0xc4, 0x7e,0x32,0x6b,0x65,0x66,0xbd,0xc6,0xd4,0x33,0xb3,0x8f,0x1b,0xd7,0xe5,0x59,0x4b, 0xbe,0x6a,0xbf,0x90,0x5e,0xd3,0x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0x73,0xf1,0xdf,0x30,0x12,0x4f,0xbf,0x51,0x6a,0xd7,0x6b,0xf2,0xb9,0xc7,0x45,0x9b, 0x1e,0x38,0xe7,0xb0,0xed,0xc6,0xf6,0xb8,0x39,0xeb,0x9f,0xa0,0x77,0xda,0xc4,0x99, 0xe8,0xb2,0x78,0xd2,0x8f,0xdb,0x6d,0xe2,0xdc,0xed,0x62,0xac,0x5e,0x38,0xc7,0xb1, 0x3d,0x82,0xed,0x61,0xbe,0xb5,0x62,0xfb,0x3e,0xfe,0x64,0xe8,0xff,0xcb,0xa4,0xcc, 0xb7,0x56,0x39,0x47,0x8c,0xff,0x46,0x17,0x63,0x74,0xc3,0x17,0x7f,0x73,0x3d,0xe3, 0x02,0x6b,0x7f,0xf8,0x2e,0x99,0xe5,0xc7,0x5f,0xf4,0x21,0xca,0x4a,0x48,0x12,0x00, 0x00 }; // Generated from: // // #version 450 core // // #extension GL_EXT_samplerless_texture_functions : require // // layout(set = 0, binding = 0)uniform utexture2D src; // layout(location = 0)out vec4 dst; // // layout(push_constant)uniform PushConstants { // // ivec2 srcOffset; // ivec2 dstOffset; // int srcMip; // int srcLayer; // // bool flipX; // bool flipY; // // bool premultiplyAlpha; // bool unmultiplyAlpha; // // bool dstHasLuminance; // bool dstIsAlpha; // // bool srcIsSRGB; // bool dstIsSRGB; // // int dstDefaultChannelsMask; // bool rotateXY; // } params; // // float sRGBToLinear(float sRGB) // { // // if(sRGB <= 0.04045) // { // return sRGB / 12.92; // } // else // { // return pow((sRGB + 0.055f)/ 1.055f, 2.4f); // } // } // // void main() // { // ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; // // ivec2 srcSubImageCoords = dstSubImageCoords; // // if(params . flipX) // { // srcSubImageCoords . x = - srcSubImageCoords . x; // } // if(params . flipY) // { // srcSubImageCoords . y = - srcSubImageCoords . y; // } // if(params . rotateXY) // { // srcSubImageCoords . xy = srcSubImageCoords . yx; // } // // uvec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip); // // if(params . premultiplyAlpha) // { // srcValue . rgb *= srcValue . a; // } // else if(params . unmultiplyAlpha && srcValue . a > 0) // { // srcValue . rgb /= srcValue . a; // } // // vec4 dstValue = vec4(srcValue); // // dstValue /= 255.0; // // if(params . dstIsSRGB) // { // // dstValue . r = sRGBToLinear(dstValue . r); // dstValue . g = sRGBToLinear(dstValue . g); // dstValue . b = sRGBToLinear(dstValue . b); // } // // if(params . dstHasLuminance) // { // dstValue . rg = dstValue . ra; // } // else if(params . dstIsAlpha) // { // dstValue . r = dstValue . a; // } // else // { // int defaultChannelsMask = params . dstDefaultChannelsMask; // if((defaultChannelsMask & 2)!= 0) // { // dstValue . g = 0; // } // if((defaultChannelsMask & 4)!= 0) // { // dstValue . b = 0; // } // if((defaultChannelsMask & 8)!= 0) // { // dstValue . a = 1; // } // } // // dst = dstValue; // }