// 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,0x57,0xfb,0x6b,0x96,0x65, 0x18,0x7e,0xef,0x6f,0x27,0x9d,0xdf,0xd4,0x9c,0xb3,0x03,0xf3,0x34,0x93,0x92,0xad, 0xb5,0x6c,0xcb,0x79,0x9e,0x16,0x4e,0x74,0xe9,0x3c,0x81,0x96,0x22,0xeb,0x24,0xa3, 0xa6,0xa4,0xa9,0x3f,0x44,0x29,0x13,0xf3,0xf0,0x43,0x92,0x18,0x96,0x82,0x20,0x89, 0x92,0xba,0x20,0x10,0x0d,0x6d,0x3f,0x0d,0x11,0xd3,0x88,0x98,0xa7,0xca,0xac,0x30, 0xd3,0x7f,0x40,0xf2,0x90,0xd6,0x7d,0xbd,0xf7,0x75,0xb7,0x9b,0x8f,0x24,0xe1,0xf1, 0xfb,0x9e,0xeb,0x3e,0x5d,0xf7,0xf5,0xdc,0xcf,0xfb,0xbd,0xcb,0xcb,0x8c,0x28,0x4a, 0x12,0x49,0x8a,0x93,0x5e,0xc9,0x65,0x49,0xd2,0x7f,0x0f,0x25,0x99,0x04,0x5f,0xfb, 0x24,0x85,0xe9,0x67,0x63,0xd3,0xbc,0xa6,0xea,0x55,0xef,0xbc,0x56,0x5d,0x5b,0x57, 0x03,0x7b,0xdf,0x24,0x2f,0xf5,0x83,0xad,0x5f,0x52,0x94,0xe4,0xeb,0x27,0x56,0x5b, 0x4b,0xeb,0x72,0xe0,0xe7,0x74,0xdd,0xd0,0xd5,0x5f,0xfd,0x80,0x6b,0x81,0x64,0x7a, 0x52,0x90,0x3c,0x63,0xe9,0x93,0x11,0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0xf0,0x59,0x29,0x86,0x3b,0x9f,0xd5, 0x81,0x0f,0x6c,0xab,0x74,0xad,0x66,0x9d,0x55,0x81,0xcf,0x69,0xb1,0xbf,0xd9,0x2e, 0x49,0xcf,0xbc,0xba,0xdf,0xea,0xc0,0xe7,0x27,0x31,0x1f,0x70,0x3c,0xcd,0x7c,0xf0, 0x5d,0x43,0xdf,0x25,0xbc,0x57,0x98,0x95,0xa5,0xd4,0x12,0xf9,0xbc,0x4e,0x97,0xf4, 0xe0,0xfe,0x6e,0xe8,0xb1,0x6b,0x42,0x9d,0x1f,0xc5,0x6a,0xa1,0x76,0x17,0xe7,0x08, 0xbe,0x6b,0xe9,0x3b,0x9f,0xf7,0x0e,0xbe,0x0b,0x99,0xaf,0x99,0xf7,0xae,0x88,0x77, 0xd5,0xfb,0xf0,0x98,0xb5,0x21,0xff,0x0f,0x62,0x35,0x50,0x73,0x21,0xef,0xc0,0x24, 0x8d,0xb8,0x41,0xdb,0x3d,0x9d,0x92,0x7a,0x5d,0xff,0x00,0x80,0xb0,0xd2,0x98,0x3c, 0x12,0x00,0x00 }; // Generated from: // // #version 450 core // // #extension GL_GOOGLE_include_directive : require // #extension GL_EXT_samplerless_texture_functions : require // // layout(set = 0, binding = 0)uniform texture2D src; // layout(location = 0)out uvec4 dst; // // #line 1 "shaders/src/ImageCopy.inc" // // layout(push_constant)uniform PushConstants { // // ivec2 srcOffset; // ivec2 dstOffset; // int srcMip; // int srcLayer; // int srcSampleCount; // // bool flipX; // bool flipY; // // bool premultiplyAlpha; // bool unmultiplyAlpha; // // bool dstHasLuminance; // bool dstIsAlpha; // // bool srcIsSRGB; // bool dstIsSRGB; // // int dstDefaultChannelsMask; // 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; // } // } // // ivec2 transformImageCoords(ivec2 glFragCoords) // { // ivec2 imageCoordsOut = glFragCoords - params . dstOffset; // // if(params . flipX) // { // imageCoordsOut . x = - imageCoordsOut . x; // } // if(params . flipY) // { // imageCoordsOut . y = - imageCoordsOut . y; // } // if(params . rotateXY) // { // imageCoordsOut . xy = imageCoordsOut . yx; // } // // return imageCoordsOut; // } // // uvec4 transformSrcValue(vec4 srcValue) // { // // 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 dstValue = uvec4(srcValue); // // 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; // } // } // // return dstValue; // } // #line 56 "shaders/src/ImageCopy.frag" // // void main() // { // ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord . xy)); // // vec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip); // // dst = transformSrcValue(srcValue); // }