// 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,0x7d,0x57,0x6d,0x68,0x96,0x65, 0x14,0x7e,0xce,0xfd,0xee,0xc3,0xf6,0xe1,0xd4,0xb9,0x69,0xe6,0x4c,0xb7,0x41,0xc5, 0x6a,0x2d,0x9b,0x12,0xda,0xd4,0x21,0xa5,0xc4,0x74,0x7e,0x2d,0x89,0x0c,0x91,0x94, 0xb0,0x9a,0x10,0x5a,0x49,0x99,0x99,0x99,0x8a,0xd4,0x50,0x7f,0x45,0x91,0x95,0xf9, 0xcb,0xb2,0xa4,0x54,0x22,0x24,0x51,0xd2,0x8d,0xca,0x3f,0x81,0x20,0x84,0x66,0x22, 0xa6,0x89,0x9a,0x4d,0xe7,0xfc,0xee,0xbe,0x9e,0x73,0x1d,0xde,0xd3,0x8b,0xf5,0xc2, 0xed,0xf3,0x9c,0xeb,0x7c,0x5f,0xf7,0x7d,0x6e,0x9f,0x65,0x42,0x4d,0x61,0x92,0x48, 0x52,0x9c,0xf4,0x49,0xca,0x43,0x92,0xfe,0xfa,0x27,0x21,0x22,0x49,0xc4,0x0a,0xd2, 0xe7,0xa4,0x96,0x99,0x2d,0xf5,0x8b,0x97,0xcc,0xaf,0x6f,0x1c,0xd5,0x00,0x7d,0xdf, 0x24,0x93,0xda,0x41,0x57,0x96,0x14,0x26,0x79,0xf1,0x89,0xd5,0x3e,0x6f,0xe1,0x22, 0xe0,0x47,0xe3,0xba,0x12,0x57,0xbf,0x68,0x07,0xbc,0x10,0x31,0xe2,0xfb,0x43,0xf1, 0x89,0x14,0x93,0x93,0xfc,0xf4,0x1d,0xbf,0x1a,0x3e,0x0d,0x13,0x62,0x7d,0x1c,0x16, 0x88,0xf5,0x73,0x58,0x86,0xd8,0x40,0x87,0xe5,0x11,0x1b,0xea,0xb0,0x7c,0x62,0xc3, 0x1d,0x56,0x40,0xac,0xd6,0x61,0x85,0xc4,0xee,0x75,0x58,0x1f,0x62,0xf7,0x3b,0xec, 0x0e,0x62,0x0d,0x0e,0x2b,0x22,0xd6,0xe8,0xb0,0x62,0x62,0x8f,0x3a,0xac,0x84,0xd8, 0x84,0x94,0x8f,0xbc,0x94,0xa7,0xe2,0x94,0x43,0x95,0x4f,0xc5,0xe7,0x08,0xf2,0x61, 0x72,0xb5,0x93,0xc1,0xe9,0x30,0xca,0xe5,0x91,0x95,0x90,0xda,0x67,0x52,0x2e,0xf0, 0x5e,0x19,0xdf,0x0a,0xd8,0x6b,0x45,0xb4,0x2f,0xe1,0x3b,0x38,0x1d,0x14,0xe5,0x52, 0xd6,0x10,0x28,0x97,0x93,0x8b,0x3c,0xda,0x57,0xd0,0x3e,0xa1,0xbe,0x32,0xc5,0x55, 0x5f,0x17,0xff,0x2d,0x20,0xb7,0x43,0xeb,0xa7,0x8c,0x1d,0x18,0xa3,0x54,0x39,0x1c, 0x75,0xce,0xf8,0x76,0x6a,0xb3,0xc9,0xf7,0xc4,0xd5,0xd6,0x76,0x68,0x9c,0xc9,0xf7, 0xc5,0xd5,0x54,0xb4,0x66,0xbc,0xc9,0x75,0x71,0x7d,0x39,0x69,0x5e,0xd3,0xb0,0xd8, 0x3d,0xb8,0x29,0xe5,0x2a,0xe1,0xaa,0xf8,0x9f,0x65,0xfa,0xe1,0x31,0xd6,0x48,0xee, 0x09,0x62,0x8c,0xa5,0xfc,0x30,0xb1,0x3a,0x72,0xd0,0x48,0x0e,0x60,0x3f,0x8a,0xba, 0x52,0xca,0x63,0x28,0x57,0xd0,0x1e,0xcf,0x26,0x72,0x60,0x72,0x8b,0xe3,0xf0,0x75, 0x72,0x96,0x71,0xf1,0x57,0xf3,0x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,0x14,0xef,0x64,0xbe,0x55,0x2e,0x1f,0x74,0x2b,0xe3,0x5a,0xc5,0x7c, 0x2b,0x79,0xaf,0x81,0xb7,0xf3,0xac,0x71,0xa1,0x64,0xbf,0x2d,0xcd,0x6e,0x15,0xf7, 0x03,0x76,0x7d,0x83,0xda,0xa0,0xd6,0xf3,0x8c,0x67,0xf5,0xac,0x66,0x3d,0x07,0x5d, 0x3d,0x6b,0x44,0x71,0xab,0x67,0x9d,0xab,0x07,0xba,0xb5,0x71,0xad,0x63,0x9e,0xb5, 0xae,0x9e,0x0b,0xac,0x07,0xf9,0xec,0x7c,0x98,0xdd,0x3a,0x57,0x4f,0x59,0x50,0x1b, 0xd4,0x78,0x81,0xf1,0xac,0x9e,0x77,0x59,0xcf,0x6a,0x57,0xcf,0x7b,0xa2,0xb8,0xd5, 0xb3,0xde,0xd5,0x03,0x5d,0x47,0x5c,0xeb,0x99,0xa7,0xc3,0xd5,0xd3,0x2d,0xfa,0x77, 0x72,0x19,0xe7,0x0c,0xf5,0x98,0xdd,0x7a,0x57,0xcf,0x80,0xa0,0x36,0xa8,0xb1,0x9b, 0xf1,0x60,0xbb,0x81,0xb6,0x4b,0x39,0x6f,0x38,0x2b,0xaf,0x89,0x72,0x99,0x49,0xb2, 0x79,0x7a,0x24,0x8b,0xdb,0xf7,0xb3,0xf9,0x6e,0x70,0x79,0xfa,0x07,0xcd,0x85,0xdc, 0x3d,0x3c,0x47,0xb0,0xdd,0x48,0xdb,0x76,0x97,0xe7,0x25,0x17,0xcf,0xf2,0xf4,0xca, 0xbf,0x71,0xb3,0x5d,0x7c,0x9b,0x9a,0xae,0x8a,0xe2,0xbd,0xee,0x6c,0x58,0x9e,0x8d, 0xae,0xa6,0x7e,0x41,0xeb,0x42,0x9d,0x57,0x39,0x37,0xe3,0x62,0xa4,0x2b,0xd4,0xdd, 0x88,0xde,0x8f,0xc4,0xf5,0x0f,0x1f,0xd1,0xa7,0xc4,0x94,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 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); // }