// 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.00000021.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000021[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x6b,0x4c,0x96,0x65, 0x18,0x7e,0xef,0xef,0xe3,0x24,0xe2,0x81,0x90,0xa4,0x74,0x4d,0x84,0xb5,0x86,0x8d, 0x81,0x40,0x2a,0x8a,0xca,0x3c,0x50,0x0b,0x03,0x74,0x54,0x6e,0x1e,0xd2,0x39,0x3b, 0x19,0x2b,0x62,0xe5,0xc4,0x55,0xa3,0x9c,0xce,0x92,0x5f,0x2e,0xa6,0x33,0xf5,0x97, 0x8b,0xe9,0x2c,0x99,0xb5,0x08,0xb6,0x66,0x7f,0x72,0xce,0x99,0x18,0x3a,0x87,0xa8, 0x69,0x07,0xcd,0xc3,0xcf,0xd6,0x69,0x5a,0xcf,0xf5,0xde,0xd7,0x1d,0xf7,0xbe,0xe5, 0xfa,0xb6,0x87,0xf7,0x7d,0xae,0xfb,0x74,0xdd,0xd7,0xf3,0x3c,0xef,0xfb,0x92,0x4c, 0x14,0x65,0x46,0x91,0x44,0xd9,0x51,0x56,0x74,0x45,0xa2,0xf8,0x97,0x1b,0x25,0x22, 0xdc,0x8e,0x8e,0x32,0xe2,0x6b,0x5d,0xfd,0xb2,0xfa,0xd2,0xd7,0xdb,0xd6,0x95,0x56, 0x56,0x95,0xc1,0x3e,0x36,0x4a,0xc6,0x7e,0xb0,0x8d,0x8b,0x32,0xa3,0xb4,0x70,0xc5, 0x78,0x65,0xcd,0x8b,0x2d,0xc0,0xcf,0x84,0x71,0x3b,0x8c,0xf1,0xc1,0x0f,0x78,0x28, 0x10,0x3d,0x1e,0xa5,0x47,0xe5,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xa2,0xb8,0xf1,0x69,0x73,0x7c,0x60, 0x6b,0x0d,0xa3,0x8d,0x75,0x5a,0x1d,0x9f,0x93,0x8c,0x19,0x76,0xcf,0x29,0xf3,0x6b, 0x73,0x7c,0x2e,0x8a,0xfa,0x80,0xe3,0x49,0xe6,0x33,0x3e,0x6f,0x90,0x4f,0x87,0xe3, 0xf3,0xa6,0x28,0x6e,0x7c,0x36,0x39,0x3e,0xb0,0x6d,0x0c,0x63,0x13,0xeb,0x6c,0x74, 0x7c,0x4e,0x89,0xfe,0xcf,0x70,0x51,0x46,0xf6,0xab,0xf9,0x6d,0x72,0x7c,0xbe,0x17, 0xf5,0x01,0xc7,0x53,0xcc,0x07,0xdf,0x76,0xfa,0xae,0x75,0xdf,0xcc,0xeb,0xa8,0x25, 0xf2,0x59,0x9d,0xe3,0x32,0x82,0xdb,0xf7,0xa7,0xc5,0xb6,0xbb,0x3a,0x97,0x45,0x6b, 0xa1,0xf6,0x71,0xee,0x23,0xf8,0x6e,0xa6,0xef,0x72,0x9e,0x3b,0xf8,0xae,0x64,0xbe, 0x66,0x9e,0xbb,0x4c,0x9e,0x55,0xeb,0xc3,0x62,0x36,0xbb,0xfc,0x97,0x44,0x6b,0xa0, 0xe6,0x4a,0x9e,0x81,0xb9,0x21,0xe2,0x36,0x6d,0x77,0xc2,0x2e,0x99,0x19,0xc6,0x3f, 0x1a,0x7f,0x1c,0x37,0xb0,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 texture3D 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); // }