// 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.0000000A.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_0000000A[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x56,0x5b,0x6f,0x55,0x65, 0x10,0xdd,0xb3,0x77,0xdb,0x73,0x6a,0x73,0xca,0x69,0x80,0x22,0x04,0x4a,0x4b,0xc5, 0x1b,0x16,0x8b,0x15,0xb0,0xad,0x18,0x49,0x4c,0xaa,0xb1,0x49,0xad,0x0d,0x31,0x18, 0x82,0x5c,0xca,0xd5,0xb4,0xa0,0xe5,0xd9,0x18,0x63,0x7c,0xf3,0xa1,0xe9,0x13,0x3f, 0x01,0x8a,0xe8,0x03,0xa2,0x06,0xb9,0xbc,0x21,0x5e,0x88,0xa6,0x6a,0xa3,0xa9,0xda, 0xd8,0x27,0xb5,0x31,0x62,0xbc,0x50,0xb4,0xc1,0x59,0x7b,0xd6,0x78,0x06,0xbc,0x9c, 0xe4,0xcb,0xde,0xb3,0xe6,0xf2,0xad,0x35,0xdf,0x7c,0xbb,0xcd,0xd2,0xd6,0x42,0x92, 0x48,0x52,0x97,0x14,0x93,0x23,0x92,0xe4,0xbf,0x86,0x24,0x4d,0xf0,0x5a,0x97,0xd4, 0xe4,0xcf,0x9e,0xde,0x81,0xde,0xb5,0x23,0x47,0x06,0xd7,0xde,0xbf,0xbe,0x1d,0xfe, 0xfa,0x24,0xcb,0xe3,0xe0,0x5b,0x90,0x14,0x92,0x2a,0x7d,0x62,0x0d,0xed,0x3c,0x30, 0x0c,0xfc,0x84,0xae,0x0b,0xba,0xca,0x1a,0x07,0xbc,0x80,0x1a,0xfa,0xde,0xa8,0xcf, 0x54,0xd7,0xa3,0x49,0x75,0xfe,0x8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0x86,0xd6,0x7f,0xe1,0xf5,0xb4,0x54,0x70,0xff,0xbe,0x76, 0x31,0x77,0x75,0xf8,0xf6,0xdd,0x4e,0x5e,0xfb,0xa5,0xf2,0xed,0xbb,0x43,0x0c,0xbf, 0xc8,0xbf,0x39,0x77,0x89,0x61,0xa3,0xe1,0xfe,0xdd,0x2d,0x86,0x8f,0x91,0x6b,0x5b, 0xe0,0x0a,0xdf,0x1a,0x5d,0x6d,0xdc,0x0f,0xef,0xce,0x6b,0x1b,0xf5,0x0d,0x85,0x7e, 0x79,0x5c,0x5b,0x98,0x87,0x43,0xe4,0x0e,0xae,0xdb,0x58,0xcf,0xf9,0xdc,0x4b,0x3e, 0x47,0x03,0x9f,0x76,0x31,0xdc,0xf9,0x74,0x04,0x3e,0xf0,0xad,0xd3,0xd5,0xc1,0x7d, 0xd6,0x05,0x3e,0xdb,0xc9,0xe7,0x50,0x98,0x65,0x8f,0xeb,0x08,0x7c,0x0e,0x8b,0xc5, 0x80,0xe3,0x76,0xd6,0x73,0x3e,0xeb,0xc9,0x67,0x6b,0xe0,0xb3,0x41,0x0c,0x77,0x3e, 0x9d,0x81,0x0f,0x7c,0x1b,0x75,0x75,0x72,0x9f,0x8d,0x81,0xcf,0x0e,0xb1,0xff,0x99, 0x0f,0xf3,0x3c,0xc1,0xc7,0xe3,0x3a,0x03,0x9f,0x11,0xb1,0x18,0x70,0xdc,0xc1,0x7a, 0xf1,0x8c,0xbb,0x42,0xec,0xf3,0x62,0xf3,0x80,0x99,0x19,0xe1,0xbe,0x71,0x4e,0xbb, 0x43,0xec,0x73,0x62,0x33,0x8d,0x3b,0x82,0x3c,0xd4,0x79,0x48,0x99,0x5c,0xa0,0x6f, 0x5e,0x4f,0xed,0x01,0x5d,0x7f,0x01,0x8b,0x48,0x77,0xe7,0x60,0x0e,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 utexture2D 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; // // 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(uvec4 srcValue) // { // // if (params.premultiplyAlpha) // { // srcValue.rgb *= srcValue.a; // } // else if (params.unmultiplyAlpha && srcValue.a > 0) // { // srcValue.rgb /= srcValue.a; // } // // 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)); // // uvec4 srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip); // // dst = transformSrcValue(srcValue); // }