// 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,0xd9,0x6f,0x95,0x75, 0x10,0xfd,0xe6,0x76,0x65,0x29,0x4b,0x5a,0x54,0x04,0xb1,0xb2,0x85,0xdd,0x5b,0x28, 0x5a,0x6c,0xaf,0xe0,0x56,0x78,0x20,0x01,0xac,0xca,0x03,0x55,0xc0,0x80,0x11,0x42, 0x81,0x54,0x4a,0x80,0x07,0x53,0xc0,0xba,0x00,0x2f,0x12,0x09,0x08,0xd2,0xf0,0x40, 0x20,0x20,0x4b,0x1f,0x4c,0xea,0x43,0x49,0x30,0x12,0x24,0x84,0x88,0xc8,0xaa,0x91, 0x16,0x10,0x59,0xfe,0x00,0xa3,0x80,0x88,0x73,0xee,0x9c,0x81,0xb1,0xd1,0xd0,0xe4, 0xc7,0xf7,0xfd,0xce,0xcc,0x9c,0x99,0x39,0xbf,0xe5,0xbb,0xe4,0xa4,0x06,0x15,0x24, 0x89,0x24,0x5d,0x93,0xc2,0xe4,0xaa,0x24,0xd9,0xbf,0xde,0x49,0x2a,0xc1,0x6b,0xb7, 0x24,0x3f,0xfb,0x9c,0x3c,0xb5,0x66,0xea,0x98,0xf7,0x96,0xcd,0x1b,0x53,0x3e,0x3e, 0x0d,0x7b,0x8f,0x24,0x27,0xeb,0x07,0x5b,0xcf,0xa4,0x20,0xc9,0xd5,0x27,0x46,0xdd, 0xdc,0x05,0x8b,0x81,0x9f,0xd3,0x71,0x53,0x47,0x2f,0xf5,0x03,0xae,0x09,0x92,0x29, 0x49,0x5e,0x52,0x66,0xf4,0xc9,0x20,0x3e,0x1d,0x13,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3,0x71, 0xf2,0x79,0x3d,0xcb,0x58,0x4f,0x5d,0xa8,0xa7,0x41,0x0c,0xf7,0x7a,0x56,0x84,0x7a, 0x60,0x5b,0xae,0x63,0x05,0xf3,0x2c,0x0f,0xf5,0x9c,0x10,0xfb,0x7f,0x12,0xf2,0xf9, 0x37,0xca,0xfd,0x56,0x84,0x7a,0x7e,0x15,0xf3,0x41,0x8d,0x27,0xc8,0x07,0xdf,0x95, 0xf4,0x9d,0x13,0xbe,0x19,0x6f,0x53,0x4b,0xf0,0x79,0x9e,0xa3,0xf2,0x00,0xf7,0xdf, 0x8c,0x1e,0xbb,0x32,0xe4,0xb9,0x22,0x96,0x0b,0xb9,0x8f,0x72,0x1f,0xc1,0x77,0x15, 0x7d,0x67,0xf2,0x5b,0x0b,0xdf,0x59,0xe4,0x6b,0xe7,0xb7,0xb6,0x80,0xdf,0x6d,0xef, 0xc3,0x63,0x56,0x05,0xfe,0xcb,0x62,0x39,0x90,0x73,0x16,0xcf,0xc0,0xf3,0x1a,0x71, 0x93,0xb6,0xbb,0xba,0x4b,0x2a,0x74,0xfc,0x03,0x1b,0xc6,0x92,0x99,0x70,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 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); // }