// 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,0x7d,0x57,0x6d,0x68,0x96,0x65, 0x14,0x7e,0xce,0xfd,0xee,0xc3,0xf6,0xe1,0xd4,0xb9,0x69,0xe6,0x4c,0xb7,0x41,0xc5, 0x6a,0x2d,0x9b,0x12,0xda,0xd4,0x21,0xa5,0xc4,0x74,0x7e,0x2d,0x89,0x0c,0x91,0x94, 0xb0,0x9a,0x10,0x5a,0x49,0x99,0x99,0x99,0x8a,0xd4,0x50,0x7f,0x45,0x91,0x95,0xf9, 0xcb,0xb2,0xa4,0x54,0x22,0x24,0x51,0xd2,0x8d,0xca,0x3f,0x81,0x20,0x84,0x66,0x22, 0xa6,0x89,0x9a,0x4d,0xe7,0xfc,0xee,0xbe,0x9e,0x73,0x1d,0xde,0xd3,0x8b,0xf5,0xc0, 0xbd,0xe7,0x39,0xd7,0xf9,0xbe,0xee,0xfb,0x3c,0x7b,0xde,0x4c,0xa8,0x29,0x4c,0x12, 0x49,0x8a,0x93,0x3e,0x49,0x79,0x48,0xd2,0xab,0x7f,0x12,0x22,0x92,0x44,0xac,0x20, 0xbd,0x4f,0x6a,0x99,0xd9,0x52,0xbf,0x78,0xc9,0xfc,0xfa,0xc6,0x51,0x0d,0xd0,0xf7, 0x4d,0x32,0xa9,0x1d,0x74,0x65,0x49,0x61,0x92,0x17,0xef,0x58,0xed,0xf3,0x16,0x2e, 0x02,0x7e,0x34,0xae,0x2b,0x71,0xf5,0x8b,0x76,0xc0,0x0b,0x11,0x23,0x3e,0x3f,0x14, 0xef,0x48,0x31,0x39,0xc9,0x4f,0x9f,0x71,0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cd,0xb3,0x62,0xbd,0x75,0x38,0x7f,0xc8,0x1f,0xa7,0xd2, 0x9b,0x13,0x91,0x6f,0x2f,0xf3,0x95,0x38,0xff,0xfd,0xdc,0x13,0x93,0x3b,0x9d,0x3f, 0xe4,0x83,0xdc,0x03,0xf8,0x1f,0x61,0x2d,0xe5,0xec,0xf7,0x08,0xe7,0xcd,0xea,0xfb, 0x8d,0xf5,0x21,0xde,0x9d,0x31,0xd3,0x49,0x27,0xfb,0x4b,0x78,0x47,0xcc,0x3f,0xf8, 0x7c,0x92,0x31,0x21,0x9f,0xca,0xa9,0xe1,0x1c,0x7b,0x46,0x8e,0x0b,0xac,0x3f,0x43, 0xff,0x5e,0x3e,0x57,0xd2,0xbf,0x97,0xf3,0x9f,0x71,0x1c,0x5e,0x93,0xec,0x39,0x82, 0x7c,0x5d,0x74,0x36,0x4d,0xbe,0x21,0x59,0x4e,0x20,0xdf,0x14,0x9d,0x2b,0x93,0x6f, 0x49,0xc2,0x73,0xa3,0x32,0x1a,0x2a,0x74,0xb2,0x84,0xec,0x1e,0x40,0x0e,0x21,0x7b, 0x06,0x20,0x67,0x82,0xce,0xda,0xe8,0x98,0x35,0x90,0xcf,0x84,0x35,0xf6,0x46,0x24, 0x3f,0xdd,0x77,0x9d,0x89,0x63,0xe4,0xb4,0x35,0x66,0x00,0x9f,0xbf,0x13,0x3b,0xe6, 0xb8,0x5b,0xc4,0x79,0x3a,0x4e,0x7d,0x73,0x8c,0x90,0x9e,0x2d,0xd1,0xf3,0xd7,0xc8, 0x78,0xb0,0x29,0x12,0xc5,0x57,0x46,0x1b,0xc8,0xc5,0xa2,0x7e,0xc0,0xe1,0x87,0x33, 0x58,0x42,0x3f,0xf0,0xd4,0xc4,0x9a,0x4b,0x45,0xf1,0xcf,0xa3,0x0d,0x66,0xad,0xaf, 0x28,0x86,0xf3,0x79,0x39,0x56,0x3e,0x90,0x9b,0x78,0x35,0xda,0x43,0x57,0x16,0x17, 0x30,0xf4,0x83,0xe7,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13,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); // }