// 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.00000010.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000010[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x59,0x6c,0x55,0x55, 0x14,0x7d,0x7b,0x3f,0xa0,0x65,0x90,0xb6,0xca,0x60,0x09,0x20,0x50,0x4d,0x54,0x1a, 0xc6,0x56,0xd1,0xd2,0x5a,0x28,0x50,0x6d,0x40,0x1c,0x51,0x43,0x0c,0x01,0x04,0x81, 0x20,0x44,0x91,0x19,0x4a,0x41,0x41,0x34,0xb6,0x4c,0x31,0x41,0x13,0x0d,0x2a,0x89, 0xc6,0x01,0x62,0xd4,0x28,0xa2,0x12,0xa2,0x04,0xf8,0xd1,0x68,0x24,0x8a,0x7c,0xa1, 0x04,0x71,0x80,0x1f,0x02,0x82,0x0a,0xf5,0xac,0xee,0xb5,0x7d,0x9b,0x17,0x8d,0x2f, 0x39,0xbd,0xf7,0xac,0x3d,0xaf,0x73,0xf6,0xb9,0xf7,0x36,0xab,0x65,0x05,0x99,0x8c, 0x64,0x3a,0x67,0x0a,0x33,0x5b,0x34,0xd3,0xf6,0x2b,0xc9,0x68,0x42,0x32,0x09,0xeb, 0xd0,0x76,0xad,0x1f,0x7f,0xf7,0xf8,0x41,0x0b,0x1e,0x7f,0x68,0x50,0x45,0xe5,0x10, 0xc8,0xbb,0x66,0xb2,0x6d,0x7a,0x90,0x15,0x65,0x0a,0x32,0xed,0xd2,0x15,0xe3,0x91, 0xa9,0xb3,0xe7,0xb9,0xa0,0x57,0x1a,0xc5,0x49,0x0f,0x78,0x01,0x7c,0xa4,0xfb,0xba, 0x74,0x45,0x88,0x5b,0x33,0xed,0xdb,0xee,0xf1,0x2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33,0x4f,0xed,0xff,0x52,0x1b,0xf8,0xdc,0x44,0x3e,0xae,0xb7,0x3f,0xe4, 0xb3,0x59,0x4d,0x07,0x39,0xc2,0x66,0x1f,0x9f,0xc3,0x07,0xa8,0xbb,0x33,0x3c,0x33, 0xde,0x11,0xe3,0x32,0x1b,0x9e,0x73,0x8f,0x6a,0x0e,0xf7,0xef,0x61,0xb7,0x3d,0x10, 0xe2,0x6c,0x52,0x8b,0x85,0xd8,0xb0,0xd9,0xc9,0x38,0x07,0xa9,0xbb,0x3d,0xc4,0x79, 0x3d,0xf8,0xf3,0x38,0x0b,0xf4,0x52,0xdc,0x75,0xdf,0xf8,0x97,0x9c,0x16,0xaa,0xe1, 0x0b,0xc2,0xde,0xf0,0x38,0x07,0x43,0x4e,0x1b,0xd5,0xf2,0x42,0x9e,0xb0,0x41,0x0e, 0x35,0xc9,0x13,0xfe,0x57,0x06,0xd9,0x85,0x64,0x3d,0x22,0x8d,0xbf,0x01,0xa4,0xfe, 0xfa,0x03,0xac,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 texture2DArray 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, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip); // // dst = transformSrcValue(srcValue); // }