// 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,0x75,0x57,0x5b,0x88,0x56,0x65, 0x14,0x3d,0xfb,0xfc,0x73,0xd3,0x99,0xf1,0x92,0x33,0x5a,0x8e,0x84,0xa6,0x69,0x69, 0xca,0x98,0x33,0x26,0xea,0x68,0x92,0xa5,0xe4,0x78,0x49,0x33,0x22,0xa5,0xb4,0x7c, 0xa8,0x4c,0x25,0x34,0x4a,0x86,0x34,0x33,0x9d,0xf1,0xc5,0x28,0x8a,0x32,0x1f,0x44, 0x92,0xa4,0xd4,0x5e,0x24,0xd1,0x52,0x87,0x12,0x89,0x50,0x10,0x02,0x1f,0x64,0xd2, 0x44,0x26,0x33,0xcd,0x46,0xd3,0xd1,0xf1,0x46,0xed,0xf5,0xef,0xb5,0xf9,0xb7,0x3f, 0xfa,0xc3,0xe7,0x39,0x7b,0xed,0xdb,0xda,0xeb,0x7c,0xdf,0x99,0x63,0x26,0xed,0x5f, 0x9c,0x24,0x92,0x94,0x26,0x25,0x49,0xe7,0x34,0xc9,0xfe,0xba,0x27,0xa9,0x22,0x89, 0x62,0x45,0xd9,0xeb,0xa4,0xfa,0x59,0xf5,0xc3,0x96,0x2e,0x5b,0x30,0xac,0xa6,0xb6, 0x1a,0xfe,0x2e,0x49,0x26,0x1b,0x07,0x5f,0xd7,0xa4,0x38,0x29,0xd0,0x2b,0xd6,0xa2, 0xf9,0xaf,0x2d,0x06,0xfe,0x9b,0xae,0x0b,0xba,0xba,0x69,0x1c,0xf0,0x62,0xd4,0xd0, 0xfb,0xe1,0x7a,0x45,0x8b,0xc9,0x49,0x61,0xf6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,0xe7,0x50,0xe0,0xb3,0x42,0x0c, 0x77,0x3e,0xab,0x02,0x1f,0xf8,0x56,0xea,0x5a,0xc5,0x3e,0x2b,0x03,0x9f,0x33,0xcc, 0x41,0x3f,0xdf,0x1f,0x1e,0xb7,0x2a,0xf0,0x29,0x4a,0x2d,0x06,0x1c,0xcf,0xb0,0x9e, 0xf3,0x59,0x4d,0x3e,0x6b,0x03,0x9f,0x0f,0xc4,0x70,0xe7,0xd3,0x18,0xf8,0xc0,0xb7, 0x46,0x57,0x23,0xfb,0xac,0x09,0x7c,0xce,0x8a,0xfd,0x7f,0xa4,0x88,0xe7,0x0c,0x7c, 0x3c,0xae,0x31,0xf0,0xe9,0x94,0x5a,0x0c,0x38,0x9e,0x65,0x3d,0xc4,0x36,0x31,0x76, 0x49,0xf8,0x1e,0x7f,0x53,0x4c,0xcb,0x4c,0x92,0xeb,0x73,0x5e,0x72,0xb8,0x7f,0xdb, 0x7a,0x6e,0x53,0xe8,0x53,0x92,0x5a,0x2f,0xf4,0x3e,0xcf,0x7d,0x84,0xd8,0x75,0x8c, 0x5d,0x10,0xfa,0xbc,0x1a,0xea,0x79,0x9f,0x36,0xb9,0x1d,0xf7,0xd8,0xd7,0xef,0xc0, 0xe9,0xa2,0x18,0xde,0x16,0xf6,0x86,0xf7,0x59,0x17,0x38,0x15,0xa7,0xc6,0x0b,0x3c, 0x2f,0xf2,0xdc,0x8c,0xd3,0x4a,0x17,0xe8,0xbb,0xa5,0xd9,0xa3,0x74,0xfd,0x0f,0xee, 0x09,0x68,0x58,0xe8,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 ivec4 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; // } // // ivec4 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; // // ivec4 dstValue = ivec4(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); // }