// 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.00000002.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000002[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x87,0x73,0x55,0x55, 0x10,0xc6,0x6f,0x92,0x97,0x17,0x08,0x2d,0x48,0x04,0x44,0x70,0x12,0x40,0x44,0x83, 0x01,0x35,0x74,0x42,0x55,0x8a,0xd2,0x24,0x44,0x10,0x51,0x88,0x22,0x4a,0x15,0xa4, 0xa9,0x20,0x25,0xd2,0x04,0x44,0x50,0x14,0x14,0x41,0x10,0x44,0x11,0x89,0xa0,0xa0, 0x10,0x91,0x62,0xa1,0xa8,0x80,0x4a,0xd3,0x3f,0xc4,0xb1,0xcc,0x58,0xce,0xde,0xfc, 0xf6,0xf9,0xf9,0x86,0xd1,0xcc,0x9c,0xb9,0x6f,0xbf,0xdd,0xfd,0xce,0xb7,0x7b,0xca, 0x7d,0x2f,0x59,0x99,0xad,0x72,0xa2,0x28,0x23,0xca,0x8d,0x6a,0x45,0x3f,0x45,0x35, 0x7f,0x0d,0xa3,0xcc,0x80,0x44,0x51,0x9d,0x28,0x19,0x3f,0x07,0x0c,0x2e,0x1b,0x5c, 0x3c,0x6b,0xf6,0x84,0xe2,0x92,0x8e,0x1d,0xcc,0x5f,0x3f,0xca,0x8a,0xe3,0xcc,0xd7, 0x20,0xca,0x89,0x12,0xe1,0x69,0x63,0x5a,0xc5,0xa4,0xe9,0x86,0xb7,0x09,0xe3,0x4a, 0x18,0x79,0x21,0xce,0xf0,0x1c,0xe3,0x08,0x9f,0xda,0xc4,0x9c,0x96,0x13,0x45,0x03, 0xa3,0xec,0xa8,0x1d,0xf3,0xb5,0xe2,0xe9,0x58,0x06,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c7,0x13,0x33,0x0e,0x1e,0xbb, 0xd3,0x1e,0x81,0xa7,0x42,0xfa,0x3b,0x01,0x7c,0x5c,0xd0,0x6c,0x67,0xe7,0x51,0xe6, 0x1f,0xcf,0xfd,0x31,0x01,0xcd,0xa3,0xf0,0x79,0x1f,0x1f,0x83,0x6b,0xa2,0xf4,0xf1, 0x71,0x70,0xef,0xe3,0x24,0x30,0xef,0xe3,0x14,0xe9,0xa3,0xf9,0x26,0x87,0x31,0x85, 0xfa,0x27,0xc3,0x6d,0xe7,0x78,0x1a,0x77,0x84,0xef,0xe3,0x64,0x7c,0x5e,0x6b,0x70, 0xd3,0x32,0x15,0xbb,0x6b,0x88,0x37,0xdf,0x13,0xdc,0xcd,0x53,0x85,0x63,0x86,0x70, 0x58,0xce,0x0c,0xe2,0xdc,0xff,0x24,0xfe,0x41,0x32,0xc7,0x2c,0x70,0x8b,0x9f,0x89, 0xed,0x73,0xcc,0x66,0x8e,0x99,0xc2,0x31,0x47,0x38,0x2c,0x67,0x0e,0x71,0xee,0x7f, 0x0a,0xff,0x3c,0x99,0xe3,0x69,0x70,0x8b,0x9f,0x8b,0xed,0x73,0x3c,0xc3,0x1c,0x73, 0x85,0x63,0xbe,0x70,0x58,0xce,0x7c,0xe2,0x6c,0xef,0x78,0xef,0xa6,0xc8,0xba,0x3c, 0xcb,0xba,0x2c,0x90,0x75,0x59,0x08,0xee,0xeb,0xb2,0x08,0xcc,0xd7,0x65,0x89,0xac, 0xcb,0xa2,0x78,0x0f,0x45,0xd1,0x6a,0xb8,0x17,0x8b,0x96,0xe7,0xd0,0x52,0x29,0xf5, 0x2c,0x05,0xf7,0xbb,0x77,0x39,0x31,0xc3,0xc2,0xdb,0xc8,0xde,0x7b,0x2b,0xc0,0x96, 0xcb,0xdd,0x6b,0xfb,0x6a,0x6d,0xe0,0x34,0xff,0x4a,0x62,0x96,0x0a,0xc7,0xf3,0x29, 0x8e,0xda,0xb1,0xbd,0x0a,0x6c,0x25,0xef,0x9d,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,0x37,0x9d,0x43,0x5c, 0x0e,0xbf,0x65,0x8c,0xab,0x8e,0xdc,0x77,0x75,0xc1,0x8f,0x50,0x63,0x03,0xb0,0x7a, 0xd4,0xd8,0x50,0x6a,0x6c,0xc0,0xff,0x60,0x1a,0xc3,0x93,0x27,0x3c,0xd7,0xc0,0xb3, 0x8c,0xf9,0xf3,0xc1,0xec,0xff,0x06,0x7f,0x86,0xd8,0x7c,0x72,0x1a,0x4b,0x4e,0x13, 0x72,0xea,0x06,0x75,0xc9,0xf8,0xb7,0x6a,0xcd,0x7d,0xda,0x0c,0x5f,0x53,0xe1,0xbb, 0x1e,0x7f,0xb3,0xf8,0xdd,0x59,0x83,0xb5,0x00,0x6f,0xce,0x1c,0x2d,0x98,0xc3,0x34, 0xff,0x45,0x3f,0xfe,0x06,0x12,0xa7,0x78,0x03,0xe4,0x12,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 uvec4 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; // } // } // // 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; // } // // srcValue *= 255.0; // // uvec4 destValue = uvec4(srcValue); // // 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; // }