// 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.00000012.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000012[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x6d,0x68,0x95,0x65, 0x18,0x7e,0xef,0x73,0x76,0xb6,0x39,0xb7,0xa9,0xcc,0xcd,0x1c,0x26,0x36,0xcd,0x8c, 0x8d,0xb1,0x72,0x53,0x97,0x3a,0x5d,0xd2,0xa6,0xa4,0xae,0x6d,0x88,0x95,0xc2,0xb4, 0x24,0x34,0x72,0xc8,0x14,0x29,0xd3,0x15,0xf6,0x61,0x4a,0xa9,0xbf,0x2c,0x51,0x34, 0xfd,0x25,0x0e,0xa5,0x72,0x98,0xb4,0x26,0x84,0x41,0x20,0x22,0xe6,0xd4,0x44,0xe6, 0xa6,0x69,0x1f,0x9a,0x1f,0xbf,0xa2,0x2f,0xc2,0x9e,0xeb,0xbd,0xaf,0x9b,0xdd,0x9c, 0x92,0x84,0xc7,0xf7,0x3c,0xd7,0xfd,0x75,0xdd,0xd7,0x73,0x3f,0xef,0x39,0x4b,0x26, 0xc6,0x66,0x45,0x91,0x44,0x39,0x51,0x76,0x74,0x4d,0xa2,0xf8,0xdf,0xb0,0x28,0x11, 0xe1,0xe3,0xe0,0x28,0x33,0x7e,0xd6,0xcf,0x6d,0x9e,0x5b,0xbe,0x7a,0xcd,0xb2,0xf2, 0xca,0xaa,0x0a,0xd8,0xf3,0xa3,0x64,0xec,0x07,0xdb,0x90,0x28,0x2b,0xca,0x08,0x4f, 0xac,0x95,0x4b,0x57,0xb4,0x02,0x3f,0x17,0xd6,0xdd,0xb0,0x86,0x06,0x3f,0xe0,0xa1, 0x40,0x34,0x3b,0x4a,0x45,0x8f,0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c,0x67,0x7c,0xda,0xc8,0xe7,0x84, 0xe3,0xb3,0x5a,0x14,0x37,0x3e,0x6b,0x1d,0x1f,0xd8,0xd6,0x84,0xb5,0x96,0x75,0xd6, 0x38,0x3e,0xa7,0xc9,0xa7,0xcf,0xbd,0xa7,0xcc,0x6f,0xad,0xe3,0xd3,0x2f,0xea,0x03, 0x8e,0xa7,0x99,0xcf,0xf8,0xbc,0x4a,0x3e,0x1b,0x1d,0x9f,0xd7,0x44,0x71,0xe3,0xb3, 0xde,0xf1,0x81,0x6d,0x5d,0x58,0xeb,0x59,0x67,0x9d,0xe3,0x73,0x46,0xf4,0xef,0xc6, 0x7e,0x19,0x98,0x57,0xf3,0x5b,0xef,0xf8,0x7c,0x2f,0xea,0x03,0x8e,0x67,0x98,0x0f, 0xbe,0x1b,0xe8,0xbb,0x8c,0xf7,0x0a,0xb3,0xf2,0x12,0xb5,0x44,0x3e,0xab,0x73,0x52, 0x06,0x70,0xfb,0xfd,0x69,0xb1,0x1b,0x5c,0x9d,0xab,0xa2,0xb5,0x50,0xfb,0x24,0xe7, 0x08,0xbe,0xed,0xf4,0x5d,0xc4,0x7b,0x07,0xdf,0x16,0xe6,0x5b,0xc8,0x7b,0x97,0xc5, 0xbb,0x6a,0x7d,0x58,0x4c,0xbb,0xcb,0x7f,0x45,0xb4,0x06,0x6a,0xb6,0xf0,0x0e,0xd4, 0x84,0x88,0xbb,0xb4,0xfd,0x1d,0xa6,0x64,0x4a,0x58,0xff,0x00,0xbd,0xa8,0x3e,0xa9, 0xc0,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 texture2DArray 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, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); // // dst = transformSrcValue(srcValue); // }