// 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.00000020.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000020[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x7b,0x6c,0xce,0x67, 0x14,0xfe,0x9d,0xb7,0x37,0xea,0xd2,0xba,0x95,0x2e,0x73,0x2d,0x99,0xa9,0xb9,0x0d, 0x23,0xa5,0xb4,0x4a,0x97,0x31,0x77,0x22,0x22,0xac,0xee,0x8c,0x9a,0x61,0xb2,0xcc, 0x86,0xb1,0xcc,0x26,0x96,0x48,0x2c,0xc1,0x9a,0x85,0x6d,0x22,0x26,0x73,0xc9,0x26, 0x36,0x86,0xbf,0xc4,0x42,0x76,0xf1,0xc7,0x22,0x13,0xb2,0xd1,0x64,0x89,0x4c,0xc8, 0x36,0xcd,0x4c,0xb1,0xbd,0x4f,0xcf,0x73,0x7c,0xc7,0x97,0xc9,0xbe,0xe4,0xf5,0x7d, 0xef,0x73,0x6e,0xcf,0x79,0xde,0xcb,0xef,0xa7,0x19,0xa1,0x28,0x27,0x49,0x24,0xc9, 0x4d,0x1a,0x25,0x4b,0x42,0xd2,0xf0,0x69,0x91,0x84,0x88,0x24,0x49,0x93,0x24,0xbb, 0xe1,0xbb,0x72,0xcc,0xa4,0x31,0xbd,0x56,0xac,0x9c,0xdb,0xab,0xff,0x80,0x3e,0xb0, 0x37,0x4f,0x32,0x1a,0xfc,0x60,0xcb,0x4b,0x72,0x92,0xcc,0xf8,0x8d,0xb1,0xb4,0x6a, 0x51,0x35,0xf0,0xfa,0x38,0xda,0x44,0x63,0x7e,0xf4,0x03,0x1e,0x0b,0x24,0xcf,0x26, 0x59,0xc9,0x08,0x4d,0x9f,0x14,0xf1,0xdb,0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0x73,0x8a,0xbe,0x35,0xee,0x39,0xba,0x8b,0xf9,0x30,0xec, 0xef,0xc1,0xc1,0x3d,0x47,0x2d,0xe6,0x94,0xcb,0xbf,0x28,0x68,0x0d,0xd4,0xdc,0xc5, 0x33,0x50,0x1a,0x23,0xf0,0x77,0x19,0xd8,0xee,0xc5,0x5d,0x32,0x28,0x8e,0x7f,0x01, 0xd9,0x60,0x5b,0x42,0xc0,0x16,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 texture3D 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 linearToSRGB(float linear) // { // // if(linear <= 0.0031308) // { // return linear * 12.92; // } // else // { // return pow(linear,(1.0f / 2.4f))* 1.055f - 0.055f; // } // } // // 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(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; // } // // vec4 dstValue = vec4(srcValue); // // 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)); // // vec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); // // dst = transformSrcValue(srcValue); // }