// 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.00000011.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000011[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x57,0x6d,0x68,0x96,0x65, 0x14,0x7e,0xce,0xf3,0x6e,0x6e,0x6e,0x7b,0xdd,0x6c,0xce,0xb2,0x99,0xb9,0x19,0x11, 0x6a,0x63,0xd5,0x0c,0x69,0x6e,0x36,0x8c,0x94,0xfc,0x58,0x6e,0x8d,0xc8,0x08,0x51, 0x0b,0x33,0xc9,0x48,0x4d,0x42,0x43,0x65,0xe5,0x92,0x92,0xe9,0xaf,0x28,0x92,0x66, 0xfe,0x92,0x46,0x52,0xea,0x8f,0x10,0x45,0x49,0xb7,0x3e,0xfc,0x13,0x48,0x42,0x68, 0x26,0xb2,0x34,0xd1,0x65,0xb3,0x6d,0x7e,0x6b,0xf7,0xf5,0x9c,0xeb,0xf0,0x9e,0x5e, 0xac,0x17,0x6e,0x9f,0xe7,0x5c,0xe7,0xfb,0xba,0xef,0xf3,0xec,0x36,0x15,0x8f,0xcb, 0x8b,0x22,0x89,0x0a,0xa3,0xfc,0x68,0x78,0x1c,0x25,0xbf,0xe1,0x51,0x1c,0x90,0x28, 0x60,0x43,0x92,0xe7,0xf4,0x59,0xcd,0xb3,0xaa,0x56,0xac,0x7c,0xb9,0xaa,0x66,0x52, 0x35,0xf4,0xc3,0xa2,0x54,0x62,0x07,0x5d,0x71,0x94,0x17,0xe5,0x84,0x27,0xd6,0xeb, 0x0b,0x96,0x2c,0x03,0x7e,0x22,0xac,0xcb,0x61,0x95,0x04,0x3b,0xe0,0x79,0x88,0x11, 0xde,0x1f,0x09,0x4f,0xa4,0x98,0x11,0xe5,0x26,0xef,0xf8,0x8d,0xe3,0xd3,0x30,0x21, 0x96,0xef,0xb0,0x98,0x58,0x89,0xc3,0x52,0xc4,0x46,0x38,0x2c,0x87,0xd8,0x68,0x87, 0xe5,0x12,0x1b,0xeb,0xb0,0x21,0xc4,0x1e,0x70,0x58,0x1e,0xb1,0x87,0x1c,0x96,0x4f, 0x6c,0xa2,0xc3,0x86,0x12,0xab,0x76,0x58,0x01,0xb1,0x1a,0x87,0x15,0x12,0x9b,0xe2, 0xb0,0x22,0x62,0x4f,0x26,0x7c,0xe4,0x24,0x3c,0x15,0x26,0x1c,0xaa,0x7c,0x26,0x3c, 0x2b,0xc8,0x87,0xc9,0x95,0x4e,0x06,0xa7,0x63,0x28,0x97,0x06,0x56,0xe2,0xc4,0x3e, 0x95,0x70,0x81,0xf7,0x91,0xe1,0x6d,0x08,0x7b,0x2d,0x0b,0xf6,0x45,0x7c,0x07,0xa7, 0x77,0x07,0x39,0xcd,0x1a,0x62,0xca,0xa5,0xe4,0x22,0x87,0x72,0x19,0xf5,0x90,0x27, 0x84,0x7f,0xa1,0x2b,0x07,0x9f,0x55,0xb3,0x6b,0x47,0x04,0xaf,0xd1,0x0e,0x47,0x9d, 0x4d,0xdf,0xcc,0x69,0x30,0xf9,0xc1,0xb0,0x5a,0x5a,0x7e,0xae,0x37,0x19,0x3c,0xd6, 0x15,0xbc,0x3f,0xd5,0xe4,0xf1,0x61,0xed,0x9c,0xbe,0xa0,0x0e,0x75,0x55,0xb3,0xae, 0x28,0xe9,0xa7,0x38,0xe1,0x26,0xcd,0x55,0xc4,0x55,0xfd,0x3f,0xcb,0xf4,0x63,0x43, 0xac,0x47,0xb9,0x27,0x88,0x51,0x4b,0xf9,0x31,0x62,0x13,0xc8,0x41,0x0d,0x39,0x80, 0xfd,0x24,0xea,0xd2,0x94,0x9f,0xa0,0x5c,0x4d,0x7b,0x3c,0xeb,0x58,0x1b,0x38,0x59, 0x43,0x8e,0x52,0x2e,0x5e,0x1b,0xcf,0x86,0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xd6,0x95,0x84,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 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, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip); // // dst = transformSrcValue(srcValue); // }