// 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.00000001.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000001[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x8b,0x97,0x8d,0x65, 0x14,0xc6,0xbf,0x99,0x33,0x73,0x0e,0xe3,0x36,0x32,0x21,0xd1,0x9a,0x31,0x92,0x1a, 0x0d,0xd5,0xb8,0x3b,0x84,0x72,0x29,0xb7,0x8c,0x89,0xa4,0x98,0x92,0x72,0x8d,0xdc, 0x2a,0x72,0x99,0xdc,0x32,0x12,0xa5,0x28,0x11,0x91,0x92,0x0c,0x45,0x85,0x5c,0xba, 0xa1,0x42,0xe5,0x56,0x7f,0x49,0xab,0xcb,0x5a,0x5d,0xde,0xfd,0xcd,0x6f,0xcf,0x7a, 0x3a,0xcb,0xaa,0x59,0xeb,0x5d,0xdf,0xd9,0xcf,0xde,0xfb,0x79,0x9f,0xbd,0xdf,0xcb, 0x77,0xce,0x24,0xb2,0x8b,0x53,0x51,0x94,0x15,0xe5,0x45,0xf5,0xa2,0x9f,0xa3,0xda, 0xbf,0xa6,0x51,0x76,0x40,0xa2,0xa8,0x41,0x94,0x8c,0x9f,0x83,0x86,0x96,0x0f,0x2d, 0x9d,0x33,0x77,0x52,0x69,0x59,0x97,0xce,0xe6,0x6f,0x1c,0x25,0xe2,0x38,0xf3,0x35, 0x89,0x52,0x51,0x4e,0x78,0xda,0x98,0x51,0x39,0x65,0xa6,0xe1,0xed,0xc3,0xb8,0x12, 0x46,0x7e,0x88,0x33,0x3c,0x65,0x1c,0xe1,0x53,0xfb,0x98,0xd3,0x72,0xa2,0x68,0x70, 0x94,0x1b,0x75,0x64,0xbe,0x62,0x9e,0x8e,0x65,0x81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0xa8,0xb1,0x09,0x58,0x23, 0x6a,0x6c,0x2a,0x35,0x36,0xe1,0x7f,0x2c,0xcd,0xe1,0xc9,0x17,0x9e,0x6b,0xe0,0x59, 0xc1,0xfc,0x05,0x60,0xf6,0x7f,0x81,0xbf,0x42,0x6c,0x01,0x39,0xcd,0x25,0xa7,0x05, 0x39,0x0d,0x83,0xba,0x64,0xfc,0x5b,0xb4,0xf6,0x3e,0x6d,0x85,0xaf,0xa5,0xf0,0x5d, 0x8f,0xbf,0x55,0xfc,0xee,0xac,0xc5,0xda,0x80,0xb7,0x66,0x8e,0x36,0xcc,0x61,0x9a, 0xff,0xa6,0x1f,0xff,0x00,0x0d,0xfd,0x1d,0x2a,0xc4,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 ivec4 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; // // ivec4 destValue = ivec4(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; // }