// 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.00000022.inc: // Pre-generated shader for the ANGLE Vulkan back-end. #pragma once constexpr uint8_t kImageCopy_frag_00000022[] = { 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x6d,0x68,0x95,0x65, 0x18,0x7e,0xef,0x73,0x76,0xb6,0x39,0xb7,0x39,0x99,0x9b,0x39,0x4c,0x6c,0x9a,0x19, 0x1b,0x63,0xe5,0xfc,0x58,0xea,0xd4,0xa4,0x4d,0x49,0x5d,0xdb,0x10,0x2b,0x85,0x69, 0x49,0x68,0xb4,0x31,0xa6,0x48,0x99,0xae,0xb0,0x0f,0x53,0x4a,0xfd,0x65,0x89,0xb2, 0xd2,0x5f,0xa2,0x38,0x2a,0x87,0x49,0x4b,0x21,0x0c,0x02,0x11,0x31,0xa7,0x26,0x32, 0x37,0x4d,0xfb,0xd0,0xfc,0xf8,0x15,0x7d,0x11,0xf6,0x5c,0xef,0x7d,0xdd,0xec,0xe6, 0x90,0x34,0x78,0x3c,0xe7,0xb9,0xee,0xaf,0xeb,0xbe,0x9e,0xfb,0x79,0xcf,0x6b,0x32, 0x31,0x2e,0x2b,0x8a,0x24,0xca,0x89,0xb2,0xa3,0x6b,0x12,0xc5,0x7f,0xc3,0xa3,0x44, 0x84,0xaf,0x43,0xa3,0xcc,0xf8,0xb3,0x6e,0x41,0xd3,0x82,0x8a,0x35,0x6b,0x57,0x56, 0x54,0x4d,0xae,0x84,0x3d,0x3f,0x4a,0xc6,0x7e,0xb0,0x0d,0x8b,0xb2,0xa2,0x8c,0xf0, 0x89,0xd5,0xb2,0x62,0x75,0x2b,0xf0,0x73,0x61,0xdd,0x0d,0xab,0x20,0xf8,0x01,0x0f, 0x05,0xa2,0x79,0x51,0x2a,0x7a,0x4c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0x67,0x7c,0xda,0xc9,0xe7,0x84, 0xe3,0xb3,0x46,0x14,0x37,0x3e,0xeb,0x1c,0x1f,0xd8,0xd6,0x86,0xb5,0x8e,0x75,0xd6, 0x3a,0x3e,0xa7,0xc9,0xa7,0xdf,0x3d,0xa7,0xcc,0x6f,0x9d,0xe3,0x33,0x20,0xea,0x03, 0x8e,0xa7,0x99,0xcf,0xf8,0xbc,0x4a,0x3e,0x9b,0x1c,0x9f,0xd7,0x44,0x71,0xe3,0xb3, 0xc1,0xf1,0x81,0x6d,0x7d,0x58,0x1b,0x58,0x67,0xbd,0xe3,0x73,0x46,0xf4,0xff,0x8d, 0x03,0x32,0x38,0xaf,0xe6,0xb7,0xc1,0xf1,0xf9,0x41,0xd4,0x07,0x1c,0xcf,0x30,0x1f, 0x7c,0x37,0xd2,0x77,0x25,0xef,0x15,0x66,0xe5,0x25,0x6a,0x89,0x7c,0x56,0xe7,0xa4, 0x0c,0xe2,0xf6,0xfe,0x69,0xb1,0x1b,0x5d,0x9d,0xab,0xa2,0xb5,0x50,0xfb,0x24,0xe7, 0x08,0xbe,0x1d,0xf4,0x5d,0xca,0x7b,0x07,0xdf,0x66,0xe6,0x5b,0xc2,0x7b,0x97,0xc5, 0xbb,0x6a,0x7d,0x58,0x4c,0x87,0xcb,0x7f,0x45,0xb4,0x06,0x6a,0x36,0xf3,0x0e,0xd4, 0x84,0x88,0xbb,0xb4,0xfd,0x13,0xa6,0x64,0x5a,0x58,0xff,0x02,0x81,0x0d,0xc7,0x64, 0xc0,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 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; // // 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; // } // // uvec4 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; // // 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)); // // vec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); // // dst = transformSrcValue(srcValue); // }