// 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,0x58,0x6d,0x68,0x95,0x65, 0x18,0x3e,0xf7,0x7d,0xd4,0xcd,0x29,0x3a,0xb5,0x56,0x33,0x93,0x74,0x49,0xe6,0xe6, 0x61,0x2b,0xcd,0xd4,0x4d,0xd7,0x56,0x5a,0xa0,0x2d,0xcd,0x44,0x50,0x34,0x33,0xa9, 0xc4,0xfc,0x9a,0x6e,0x6a,0xe4,0x47,0xe2,0xa6,0x65,0x42,0xfd,0x08,0xb5,0x0c,0xa3, 0x0f,0xa5,0x4c,0x4a,0xa4,0x44,0x4a,0xd4,0x3f,0x45,0x51,0xf4,0xf9,0x47,0x92,0xc4, 0x6a,0xf8,0x23,0x8c,0x24,0x73,0x15,0x65,0xcf,0xb5,0xfb,0xba,0x3b,0xb7,0x87,0xa2, 0x03,0xcf,0xde,0xf7,0xbe,0xee,0xef,0xeb,0x79,0xee,0xf7,0x3d,0x67,0x59,0xad,0x28, 0xca,0x64,0x24,0xd3,0x2b,0x53,0x9c,0xd9,0xa6,0x99,0xae,0x4f,0xbf,0x8c,0x26,0x24, 0x93,0xb0,0x1e,0x5d,0xd7,0xc9,0x53,0xee,0x9d,0x92,0x6b,0x5e,0xf9,0x60,0x6e,0xd4, 0xe8,0x6a,0xe8,0xfb,0x64,0xb2,0x5d,0x76,0xd0,0xf5,0xcd,0x14,0x65,0xba,0xa5,0x2b, 0xd6,0xa3,0xf3,0x1f,0x59,0xe2,0x8a,0x01,0x69,0x95,0x26,0x3b,0xe0,0x45,0x88,0x91, 0xee,0x1b,0xd3,0x15,0x29,0xee,0xcc,0x74,0xef,0xba,0xc7,0xa7,0x82,0x57,0xc7,0x84, 0x58,0x71,0xc0,0x94,0x58,0x69,0xc0,0xb2,0xc4,0x06,0x05,0xac,0x1b,0xb1,0xeb,0x02, 0xd6,0x9d,0xd8,0xf5,0x01,0xeb,0x41,0x6c,0x78,0xc0,0x8a,0x88,0x55,0x05,0xac,0x98, 0x58,0x75,0xc0,0x7a,0x12,0x1b,0x15,0xb0,0x12,0x62,0xb7,0x06,0xac,0x17,0xb1,0xda, 0x80,0xf5,0x26,0x56,0xdf,0xc5,0x47,0xb7,0xae,0x66,0x7b,0x75,0x71,0x68,0x72,0xcf, 0x24,0x0f,0x21,0x1f,0x2e,0x0f,0x0d,0x32,0x38,0x1d,0x4c,0x79,0x40,0x62,0x05,0xbc, 0x0c,0x49,0x4c,0x64,0xc9,0x51,0x59,0xba,0xeb,0xc1,0xfe,0xaf,0x4c,0xf6,0x7d,0x79, 0x0f,0x4e,0xaf,0x4a,0x72,0x29,0x73,0x29,0xe5,0x32,0x72,0x01,0xde,0x2a,0xd3,0x5f, 0xdc,0x5f,0x0b,0x4e,0x73,0x53,0xc7,0x5f,0x91,0xac,0x06,0x07,0x1c,0x75,0x4f,0x3f, 0x7c,0xf7,0x6d,0x2e,0x83,0xbb,0xfb,0xee,0xfb,0x7a,0x82,0xcb,0x23,0xd2,0xaa,0x2b, 0x69,0x9f,0xe8,0x32,0x78,0x3c,0x30,0x79,0x7e,0x9d,0xcb,0x35,0x69,0x75,0x1c,0x18, 0xf6,0x8f,0x0c,0x5e,0x76,0xed,0x2c,0xaf,0x47,0x9d,0x0d,0xac,0x13,0x9f,0xc1,0xa9, 0xc2,0x46,0xee,0xb5,0xd7,0xdb,0xf0,0x3f,0xcb,0x6d,0xae,0x4b,0xb1,0x6e,0xe7,0x1e, 0x21,0xc6,0x78,0xca,0x77,0x10,0xab,0x24,0x27,0x93,0xc8,0x09,0xec,0x27,0x53,0x57, 0x4a,0x79,0x0a,0xe5,0x06,0xda,0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,0x77,0x87,0x3c,0x2f,0x85,0x78, 0x9e,0x67,0xb1,0x5e,0x8e,0xbb,0xed,0xcb,0xff,0x52,0xd3,0x12,0x35,0x7c,0x71,0x38, 0x1b,0x9e,0xe7,0x44,0xa8,0x69,0xab,0x5a,0x5d,0xa8,0x13,0x3e,0xa8,0x61,0x42,0x8a, 0x84,0xff,0x63,0x41,0xf7,0x67,0xf2,0xbe,0x35,0xad,0xbf,0x01,0xdb,0x7f,0x5a,0x3c, 0x10,0x17,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 vec4 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; // } // } // // float sRGBToLinear(float sRGB) // { // // if (sRGB <= 0.04045) // { // return sRGB / 12.92; // } // else // { // return pow( (sRGB + 0.055f) / 1.055f, 2.4f); // } // } // // 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; // } // // vec4 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; // } // // vec4 dstValue = vec4(srcValue); // // if (params.dstIsSRGB) // { // // dstValue.r = sRGBToLinear(dstValue.r); // dstValue.g = sRGBToLinear(dstValue.g); // dstValue.b = sRGBToLinear(dstValue.b); // } // // 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); // }