// 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.00000004.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000004[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x69,0x6c,0x55,0x65, 0x10,0xbd,0x73,0x5f,0x57,0x5a,0x4a,0x59,0x6a,0x65,0xb1,0x41,0x71,0x41,0x20,0x50, 0x91,0x4d,0x6a,0x29,0xc4,0x08,0x1a,0x91,0x8a,0x2b,0xf1,0x87,0x06,0x63,0x55,0x7e, 0xb0,0x58,0x88,0xc1,0x46,0x49,0x59,0x55,0x02,0x24,0x26,0x46,0x03,0x51,0xe4,0x17, 0x4a,0xc0,0xb2,0xfc,0x22,0xa2,0x44,0xa0,0x01,0x13,0x63,0x25,0x31,0x21,0x91,0x10, 0xb0,0x12,0x04,0xc4,0x60,0x29,0x10,0x40,0x04,0x9c,0xf3,0xe6,0x4c,0xde,0xd0,0x60, 0x7c,0xc9,0xd7,0x7b,0xbf,0x33,0x33,0x67,0x66,0xce,0xfd,0xe6,0xbe,0xd7,0x4c,0x3a, 0xa8,0x30,0x49,0x24,0x29,0x49,0x8a,0x92,0x3e,0x69,0x92,0xfd,0xf4,0x4c,0x52,0x45, 0x12,0xc5,0x0a,0xb2,0xd7,0x29,0x53,0x9f,0x99,0x3a,0x7c,0xfe,0x82,0x57,0x87,0x8f, 0x1a,0x5d,0x0d,0x7b,0x59,0x92,0xc9,0xfa,0xc1,0xd6,0x23,0x29,0x4c,0xf2,0xf4,0x8a, 0x35,0x7b,0xe6,0xac,0x39,0xc0,0x7f,0xd5,0x75,0x5e,0x57,0xb9,0xfa,0x01,0x2f,0x04, 0x87,0xde,0x3f,0xa0,0x57,0xa4,0x78,0x2c,0xc9,0xcf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f,0x07,0xdd,0xaf,0x39,0x68,0xdd,0x23,0x35,0x1f,0xd4,0xda,0x41,0x3e,0xaf,0x67, 0x09,0xeb,0x69,0x0b,0xf5,0x2c,0x15,0xe2,0xac,0x67,0x45,0xa8,0x07,0xb6,0x65,0xba, 0x56,0x30,0xcf,0xb2,0x50,0x4f,0x27,0xeb,0x41,0x3e,0x7f,0xf6,0xee,0xb7,0x22,0xd4, 0x53,0x9e,0x9a,0x0f,0x6a,0xec,0x24,0x9f,0xd7,0xf3,0x3e,0xeb,0x69,0x0c,0xf5,0x7c, 0x20,0xc4,0x59,0xcf,0xaa,0x50,0x0f,0x6c,0x2b,0x75,0xad,0x62,0x9e,0x95,0xa1,0x9e, 0x0b,0x62,0xff,0x77,0x22,0x5f,0x86,0xf5,0xb8,0xdf,0xaa,0x50,0x4f,0xef,0xd4,0x7c, 0x50,0xe3,0x05,0xf2,0xc1,0x77,0x35,0x7d,0x17,0x84,0xef,0x8c,0xb7,0xc4,0xb4,0xcc, 0x24,0xb9,0x3c,0x97,0x24,0x87,0xfb,0x6f,0x5e,0x8f,0x5d,0x1d,0xf2,0xf4,0x4a,0x2d, 0x17,0x72,0x5f,0xe2,0x39,0x82,0xef,0x1a,0xfa,0xce,0x0a,0x79,0x66,0x07,0x3e,0xcf, 0x73,0x45,0x6e,0xc6,0xdd,0x77,0xee,0x2d,0x6a,0xba,0x2a,0x86,0x5f,0x91,0xdc,0xd9, 0xf0,0x3c,0x6b,0x42,0x4d,0x3d,0x53,0xab,0x0b,0x75,0x5e,0xe5,0xdc,0x4c,0x50,0xa6, 0xf3,0xb4,0x5d,0xd3,0xe8,0x71,0xba,0xfe,0x05,0xff,0x66,0x4e,0xd7,0x2c,0x13,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 itexture2D 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 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(ivec4 srcValue) // { // // if (params.premultiplyAlpha) // { // srcValue.rgb *= srcValue.a; // } // else if (params.unmultiplyAlpha && srcValue.a > 0) // { // srcValue.rgb /= srcValue.a; // } // // vec4 dstValue = vec4(srcValue); // // dstValue /= 255.0; // // 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)); // // ivec4 srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip); // // dst = transformSrcValue(srcValue); // }