// 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,0x85,0x56,0xfd,0x6b,0x96,0x65, 0x14,0x7e,0xce,0xfb,0x6e,0x6e,0xce,0x4d,0x37,0xd4,0x3e,0xfc,0x28,0xd7,0x22,0x63, 0xda,0x58,0xba,0x99,0x5f,0x9b,0x5a,0xf9,0x89,0x6d,0xba,0x50,0x2b,0x0d,0x93,0x14, 0x31,0x99,0xa5,0x9b,0x3f,0x49,0x66,0x33,0x5d,0x08,0x96,0x28,0xa5,0xfe,0xa2,0x24, 0x4a,0xe9,0xa0,0x20,0x14,0xb4,0xf5,0xcb,0x10,0x31,0x8d,0x88,0xa9,0xb3,0x32,0x2b, 0xcc,0xf4,0x3f,0x28,0xf3,0xa3,0x8f,0x73,0x3d,0xe7,0x3a,0xee,0xf0,0x92,0x34,0xb8, 0xf7,0x3c,0xf7,0x75,0xbe,0xae,0x73,0xdd,0xe7,0x79,0xde,0x27,0x9b,0xa9,0x28,0x48, 0x12,0x49,0x8a,0x92,0xc2,0xe4,0x92,0x24,0xe9,0x5f,0x59,0x92,0x49,0x70,0xdb,0x2f, 0xe9,0x93,0x5e,0x67,0xce,0x7d,0x7e,0x6e,0x55,0x4b,0xeb,0xf2,0xaa,0x9a,0xda,0x6a, 0xd8,0xfb,0x27,0xd9,0xd4,0x0f,0xb6,0x01,0x49,0x41,0x92,0xa7,0x57,0xac,0xe6,0x65, 0xab,0xd6,0x00,0x3f,0xa7,0xeb,0xba,0xae,0x52,0xf5,0x03,0xae,0x05,0x92,0x59,0x49, 0x7e,0xf2,0xa4,0xa5,0x4f,0x2a,0x78,0x75,0x4c,0x88,0x15,0x06,0x2c,0x43,0xac,0x34, 0x60,0x59,0x62,0x83,0x02,0x96,0x47,0xec,0x81,0x80,0xe5,0x13,0x1b,0x16,0xb0,0x3e, 0xc4,0x46,0x04,0xac,0x80,0xd8,0xa3,0x01,0x2b,0x24,0xf6,0x78,0xc0,0xfa,0x12,0x1b, 0x1d,0xb0,0x22,0x62,0xd5,0x01,0xeb,0x47,0xac,0x26,0x60,0xc5,0xc4,0xc6,0x07,0xac, 0x84,0xd8,0xe4,0x80,0xf5,0x27,0x36,0x15,0x7a,0x6b,0xa7,0xae,0xc1,0x4c,0xed,0xf0, 0x1c,0x73,0x0f,0xe0,0xfe,0xb2,0x5e,0x1f,0xa1,0x86,0xbe,0x2f,0x0f,0x7b,0x68,0xff, 0x10,0xf7,0x03,0x35,0x4b,0x26,0xb5,0x67,0x53,0xfd,0x70,0x7f,0x9f,0xde,0xf5,0xa1, 0x16,0x83,0xd5,0xbf,0x98,0xf7,0x38,0x87,0xfb,0x75,0x5f,0x42,0xde,0x19,0xee,0x07, 0x52,0xbf,0x3c,0xee,0x07,0xd3,0x8e,0xfd,0x28,0xfd,0x0f,0xdb,0x50,0xe8,0x5d,0xf5, 0xdc,0xa4,0x41,0x1a,0x35,0x2c,0xe0,0xe0,0xd5,0x74,0xbc,0x61,0x9a,0xef,0x1f,0xd3, 0xb5,0x60,0x41,0x4f,0xbd,0xef,0xa1,0x73,0x5d,0x51,0xfb,0x14,0xdf,0x57,0xea,0xfa, 0x74,0xe6,0xb2,0x3a,0xf0,0xaa,0x26,0xaf,0x24,0xed,0xa7,0xec,0xae,0x76,0xce,0xcf, 0x57,0xf5,0xff,0x2c,0xf7,0x19,0xa1,0x39,0xc7,0xf0,0x3c,0x91,0x6b,0x12,0xf7,0x63, 0x89,0x8d,0xa2,0x16,0x35,0xd4,0x02,0xfe,0xb5,0xb4,0x95,0x04,0xfb,0x04,0xce,0x18, 0xec,0x13,0x69,0xaf,0xa6,0x1d,0xd7,0x3a,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0xd5,0xd5,0xc2,0x3a,0x6b,0x03,0x9f,0xd3,0x62,0xdf,0xf3,0x17,0xa5,0x77,0x5e,0xdd, 0xaf,0x25,0xf0,0xf9,0x41,0xcc,0x07,0x1c,0x4f,0x33,0x1f,0x7c,0x5b,0xe9,0xbb,0x38, 0x7c,0xcf,0xbe,0x4c,0x2d,0xb3,0x49,0x6f,0x9d,0x2e,0xe9,0xc5,0xfd,0xdb,0xd0,0x63, 0x5b,0x43,0x9d,0xef,0xc5,0x6a,0xa1,0x76,0x17,0xe7,0x08,0xbe,0xeb,0xe9,0xdb,0xc4, 0xe7,0x0e,0xbe,0x0b,0x99,0xaf,0x81,0xcf,0x5d,0x01,0x9f,0x55,0xef,0xc3,0x63,0xd6, 0x87,0xfc,0xdf,0x89,0xd5,0x40,0xcd,0x85,0x7c,0x06,0xea,0x35,0xe2,0x3a,0x6d,0x7f, 0xe9,0x94,0x8c,0xd7,0xf5,0x2f,0x6a,0x2a,0x08,0xdf,0x2c,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); // }