// 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.00000000.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000000[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x09,0x94,0x8e,0x65, 0x14,0xc7,0xdf,0xf9,0xbe,0x59,0x18,0xfb,0x1e,0xd9,0x4a,0xb6,0x43,0x93,0x73,0x0c, 0x61,0x32,0x83,0x62,0x28,0xbb,0x46,0x85,0x42,0xd9,0x85,0x42,0x49,0x65,0x0b,0x19, 0x2a,0x2a,0x24,0x84,0x8a,0x52,0xd4,0x44,0x94,0xb5,0x50,0xa1,0xa8,0xa8,0x2c,0x45, 0x45,0x59,0xda,0x50,0x59,0xb2,0xa7,0xe7,0x3e,0xdf,0xef,0xce,0xb9,0xbd,0xc7,0xa9, 0x39,0xe7,0x39,0xdf,0x77,0xff,0xf7,0x3e,0xf7,0xfe,0xef,0xf2,0x3c,0xdf,0x3b,0x6f, 0x34,0x52,0x29,0x29,0x08,0xe2,0x82,0xe4,0x20,0x4f,0x70,0x29,0x88,0xfd,0x15,0x09, 0x22,0x0e,0x09,0x82,0x7c,0x41,0xa2,0xff,0xcc,0x6c,0xd9,0xa1,0x65,0xca,0x90,0xa1, 0x3d,0x52,0x52,0xeb,0xd4,0x12,0x7d,0xc1,0x20,0xea,0xed,0x44,0x57,0x28,0x48,0x0a, 0xe2,0xdd,0xa7,0xac,0x01,0xdd,0xfb,0x0e,0x14,0xbc,0xbe,0x5b,0x17,0xdd,0x2a,0xec, 0xec,0x04,0x4f,0x12,0x1f,0xee,0x5b,0x7d,0xef,0x53,0xf6,0x04,0x41,0xf3,0x20,0x21, 0xc8,0x20,0x5e,0x25,0x3e,0x15,0x8b,0x03,0xcb,0x63,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0x99,0x7a,0xe4,0xc7,0xbe,0xa0, 0xe1,0x54,0x09,0x5c,0xeb,0x51,0xd9,0xbc,0xfb,0x93,0x7a,0x54,0x35,0xf5,0x10,0x5d, 0x15,0xff,0x0e,0x20,0xe6,0xa7,0x8a,0xf1,0x53,0x0d,0x3f,0xd9,0xc4,0xaf,0x0e,0xa6, 0xf5,0xa8,0xce,0x9e,0x1a,0x66,0x4f,0x4d,0xf6,0x8c,0x61,0xcf,0xb5,0x60,0x15,0x8c, 0x9f,0x14,0xf0,0x72,0xa6,0x6e,0xb5,0x4c,0xdd,0x52,0x78,0x7f,0x26,0x31,0x6a,0x11, 0xa3,0xaa,0xa9,0xc7,0x3f,0xb1,0x20,0x58,0x7d,0xd8,0x15,0x00,0x00 }; // Generated from: // // #version 450 core // // #extension GL_EXT_samplerless_texture_functions : require // // layout(set = 0, binding = 0)uniform texture2D src; // layout(location = 0)out vec4 dest; // // layout(push_constant)uniform PushConstants { // // ivec2 srcOffset; // ivec2 destOffset; // int srcMip; // int srcLayer; // // bool flipX; // bool flipY; // // bool premultiplyAlpha; // bool unmultiplyAlpha; // // bool destHasLuminance; // bool destIsAlpha; // // bool srcIsSRGB; // bool destIsSRGB; // // int destDefaultChannelsMask; // bool rotateXY; // } params; // // float linearToSRGB(float linear) // { // // if(linear <= 0.0031308) // { // return linear * 12.92; // } // else // { // return pow(linear,(1.0f / 2.4f))* 1.055f - 0.055f; // } // } // // 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 destSubImageCoords = ivec2(gl_FragCoord . xy)- params . destOffset; // // ivec2 srcSubImageCoords = destSubImageCoords; // // if(params . flipX) // { // srcSubImageCoords . x = - srcSubImageCoords . x; // } // if(params . flipY) // { // srcSubImageCoords . y = - srcSubImageCoords . y; // } // if(params . rotateXY) // { // srcSubImageCoords . xy = srcSubImageCoords . yx; // } // // vec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip); // // if(params . srcIsSRGB) // { // // srcValue . r = linearToSRGB(srcValue . r); // srcValue . g = linearToSRGB(srcValue . g); // srcValue . b = linearToSRGB(srcValue . b); // } // // if(params . premultiplyAlpha) // { // srcValue . rgb *= srcValue . a; // } // else if(params . unmultiplyAlpha && srcValue . a > 0) // { // srcValue . rgb /= srcValue . a; // } // // vec4 destValue = vec4(srcValue); // // if(params . destIsSRGB) // { // // destValue . r = sRGBToLinear(destValue . r); // destValue . g = sRGBToLinear(destValue . g); // destValue . b = sRGBToLinear(destValue . b); // } // // if(params . destHasLuminance) // { // destValue . rg = destValue . ra; // } // else if(params . destIsAlpha) // { // destValue . r = destValue . a; // } // else // { // int defaultChannelsMask = params . destDefaultChannelsMask; // if((defaultChannelsMask & 2)!= 0) // { // destValue . g = 0; // } // if((defaultChannelsMask & 4)!= 0) // { // destValue . b = 0; // } // if((defaultChannelsMask & 8)!= 0) // { // destValue . a = 1; // } // } // // dest = destValue; // }