blob: 709e906ef4560a9a2691addc24f965e093ed71dc [file] [log] [blame]
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2020 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,0x98,0x0b,0x94,0x8d,0x55,
0x14,0xc7,0xbf,0x7b,0xef,0xcc,0x9d,0xf1,0x7e,0x13,0x31,0x94,0xbc,0x16,0x4d,0xd6,
0x32,0x64,0x88,0x41,0x79,0x95,0xb7,0xa8,0x50,0x28,0x6f,0xa1,0xd0,0x0b,0x09,0x19,
0x44,0x85,0x8a,0xf2,0x48,0x12,0x2a,0x4a,0x51,0x22,0x24,0xa9,0x50,0x51,0x51,0xa8,
0x3c,0x8a,0x8a,0xf2,0xe8,0x85,0xbc,0x92,0xce,0x3e,0xf7,0xb7,0xa7,0xed,0x5b,0x56,
0xcd,0x5a,0x67,0xdd,0xbb,0xff,0x7b,0x9f,0xff,0xfe,0x9f,0xbd,0xcf,0x39,0xf7,0x9b,
0x2f,0x16,0x2d,0x9f,0x12,0x04,0x91,0x20,0x77,0x90,0x1a,0xc4,0x23,0x81,0xff,0x2b,
0x14,0x44,0x03,0xf9,0x9a,0x27,0x88,0xfb,0xcf,0xa6,0x2d,0xda,0xb7,0x48,0x1f,0x32,
0xb4,0x47,0x7a,0x46,0xcd,0xea,0xe2,0xcf,0x1f,0xc4,0x7c,0x9c,0xf8,0x0a,0x04,0x29,
0x41,0x92,0xfb,0x94,0x31,0xa0,0x7b,0xdf,0x81,0x82,0x67,0x8a,0xed,0x9c,0x05,0x5d,
0x9c,0xe0,0x29,0xc2,0xe1,0xbe,0x65,0x7a,0x4e,0x99,0x13,0x04,0xcd,0x82,0xe4,0x20,
0x2b,0x91,0x2e,0x28,0xcf,0xa7,0x62,0x11,0xb0,0x54,0x83,0x45,0xc1,0x0a,0x1a,0x2c,
0x06,0x56,0xd4,0x60,0x49,0x60,0x97,0x18,0x2c,0x19,0xac,0xb4,0xc1,0xe2,0x60,0xe5,
0x0c,0x96,0x02,0x76,0x85,0xc1,0x52,0xc1,0x2a,0x1b,0x2c,0x17,0x58,0x35,0x83,0xe5,
0x06,0xab,0x6e,0xb0,0x3c,0x60,0x19,0x06,0xcb,0x0b,0x56,0xdb,0x60,0xf9,0xc0,0xae,
0xf1,0x75,0x8a,0xe5,0xac,0x57,0x6a,0x36,0xc0,0x7d,0x5e,0x4e,0x7d,0xd4,0xbe,0xcc,
0xd8,0x52,0xe7,0x34,0xec,0x22,0x6e,0x56,0xd4,0xfb,0x63,0xbe,0x36,0xf2,0xbd,0xb8,
0xfb,0x16,0x67,0x9d,0xe5,0x5c,0x7c,0x0a,0xeb,0x8c,0xfb,0xb8,0x24,0xbf,0xbe,0x38,
0x58,0x55,0x67,0xc7,0xa9,0x71,0xe9,0xf4,0x96,0x75,0x8b,0x3a,0x86,0x42,0x06,0x2f,
0xee,0x46,0xbb,0x95,0xad,0x1a,0xaa,0x7d,0xa9,0x1b,0x1d,0x3a,0x6c,0xaf,0xaf,0x76,
0x19,0x37,0xea,0xe5,0x1e,0x9f,0xa5,0x76,0x59,0x37,0x96,0x34,0xed,0x5e,0x4f,0x6d,
0xa9,0xeb,0x81,0x25,0x15,0x72,0xec,0xab,0xdc,0x98,0x39,0xa3,0x64,0x83,0x62,0xce,
0xae,0x81,0x46,0xe9,0x7d,0x09,0x67,0x4b,0xcd,0x6a,0xb0,0x06,0xd1,0x5d,0x13,0x8d,
0x19,0xf8,0xaf,0x46,0x77,0x12,0xfe,0xda,0xcc,0x15,0xbc,0x2e,0x76,0xa6,0xe1,0xab,
0x43,0xbc,0xf0,0x49,0xbe,0xfa,0xe4,0x93,0xbf,0x34,0xb7,0xe2,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0xf0,0x64,
0x93,0xbf,0x04,0x58,0x71,0x5f,0xb7,0xa8,0xb7,0x65,0x4e,0x49,0x33,0xa7,0x14,0x73,
0xf2,0x3a,0x75,0x71,0xde,0x05,0x46,0xc0,0x4b,0xf1,0x2e,0x4b,0xf9,0xd2,0xf0,0x97,
0xf1,0xcf,0xb9,0xc9,0x39,0xef,0xcf,0xd2,0x78,0xa7,0x25,0x39,0xca,0x91,0xa3,0xa8,
0xef,0xc5,0x85,0xf5,0xc8,0x77,0x91,0x7a,0xe4,0x25,0x3e,0xbf,0xd1,0x54,0x1e,0x5c,
0xeb,0x51,0xc1,0xbc,0x7f,0x94,0x7a,0x54,0x32,0xf5,0x10,0x5f,0x45,0xff,0x9e,0x21,
0xc1,0x53,0xd1,0xf0,0x54,0x86,0x67,0x02,0xf9,0xab,0x80,0x69,0x3d,0xaa,0x30,0xa7,
0xaa,0x99,0x53,0x8d,0x39,0xa3,0x99,0x73,0x25,0x58,0x59,0xc3,0x93,0x0e,0x5e,0xc6,
0xd4,0xad,0xba,0xa9,0x5b,0x3a,0xef,0xf0,0x24,0x47,0x75,0x72,0x54,0x32,0xf5,0xf8,
0x07,0xec,0x05,0xca,0x95,0x5c,0x16,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform texture3D src;
// layout(location = 0)out vec4 dest;
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 destOffset;
// int srcMip;
// int srcLayer;
//
// bool flipX;
// bool flipY;
//
// bool premultiplyAlpha;
// bool unmultiplyAlpha;
//
// bool destHasLuminance;
// bool destIsAlpha;
//
// bool srcIsSRGB;
// bool destIsSRGB;
//
// int destDefaultChannelsMask;
// 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);
// }
// }
//
// void main()
// {
// ivec2 destSubImageCoords = ivec2(gl_FragCoord . xy)- params . destOffset;
//
// ivec2 srcSubImageCoords = destSubImageCoords;
//
// if(params . flipX)
// {
// srcSubImageCoords . x = - srcSubImageCoords . x;
// }
// if(params . flipY)
// {
// srcSubImageCoords . y = - srcSubImageCoords . y;
// }
// if(params . rotateXY)
// {
// srcSubImageCoords . xy = srcSubImageCoords . yx;
// }
//
// vec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// 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 destValue = vec4(srcValue);
//
// if(params . destIsSRGB)
// {
//
// destValue . r = sRGBToLinear(destValue . r);
// destValue . g = sRGBToLinear(destValue . g);
// destValue . b = sRGBToLinear(destValue . b);
// }
//
// if(params . destHasLuminance)
// {
// destValue . rg = destValue . ra;
// }
// else if(params . destIsAlpha)
// {
// destValue . r = destValue . a;
// }
// else
// {
// int defaultChannelsMask = params . destDefaultChannelsMask;
// if((defaultChannelsMask & 2)!= 0)
// {
// destValue . g = 0;
// }
// if((defaultChannelsMask & 4)!= 0)
// {
// destValue . b = 0;
// }
// if((defaultChannelsMask & 8)!= 0)
// {
// destValue . a = 1;
// }
// }
//
// dest = destValue;
// }