blob: 14e0412099ccf26e8546d04773124474dc1dc18e [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.00000012.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000012[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x8d,0x77,0xce,0x65,
0x18,0xc7,0x7f,0x7b,0x9e,0x67,0xcf,0xc3,0xcc,0x4c,0x16,0xd2,0x74,0xb6,0x91,0xd4,
0x34,0xab,0xe6,0x75,0x1e,0x1a,0x65,0x94,0x11,0xb3,0x48,0x4a,0x2b,0xc5,0xd2,0x14,
0x53,0x56,0x31,0x4c,0xb2,0x25,0x09,0x15,0xa5,0x28,0x11,0x59,0xb4,0x8a,0x2c,0x54,
0x54,0x4c,0x6f,0xa8,0x4c,0xe5,0xad,0xfe,0x89,0x4e,0x2f,0xe7,0xf4,0x72,0x5f,0xbf,
0x7d,0xae,0xa7,0xeb,0xfc,0x8e,0x53,0x3b,0xe7,0x3e,0xbf,0xe7,0xfa,0x5e,0xd7,0xfd,
0xbd,0xbf,0xd7,0x75,0xdd,0xf7,0xfd,0x7b,0x9e,0x85,0x43,0x3d,0x62,0x9e,0x97,0xe4,
0xa5,0x78,0x6d,0xbc,0x9f,0xbd,0xd6,0xbf,0x8e,0x5e,0xc8,0x21,0x9e,0xd7,0xce,0x8b,
0xfa,0xcf,0xe2,0x31,0xa5,0x63,0xf2,0xaa,0xe6,0x4d,0xcf,0x2b,0xe8,0x97,0x2f,0xfe,
0x34,0x2f,0xec,0xc7,0x89,0xaf,0x83,0x17,0xf3,0x22,0xee,0x29,0xa3,0xb2,0xbc,0x62,
0xb6,0xe0,0xbd,0xdc,0x38,0xef,0x46,0xba,0x8b,0x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x3f,0x80,0x35,0x1a,0x2d,
0x3f,0x82,0xab,0x96,0x33,0x46,0x8b,0xf8,0x4e,0xbb,0x71,0x06,0xee,0xd3,0x46,0xcb,
0x59,0xd3,0x77,0xd1,0x72,0x96,0x1a,0x89,0x16,0x8d,0x3f,0x13,0xe8,0xf1,0xa1,0xc0,
0x1e,0xdd,0x63,0xf6,0xfc,0x4f,0xf0,0x09,0xd7,0x79,0xec,0x3f,0xdd,0x4d,0x34,0xd0,
0x8d,0xfe,0xbc,0x17,0x53,0xd0,0x26,0xbf,0xa1,0x06,0xb8,0xb8,0x18,0xbf,0x97,0x84,
0xab,0x9d,0xb9,0xef,0x52,0xc1,0x0f,0x90,0x63,0x07,0xb0,0xf6,0xe4,0xd8,0xd1,0xe4,
0xd8,0x81,0xff,0x03,0x75,0x86,0x27,0xdd,0xf0,0x5c,0x04,0xcf,0x32,0xd6,0xcf,0x00,
0x93,0xff,0x5d,0xfc,0xe5,0x62,0x33,0x98,0xd3,0xd9,0xcc,0xe9,0xc2,0x9c,0x54,0xa7,
0x2e,0xea,0xff,0x5e,0x6e,0xbd,0x4f,0xbb,0xe1,0xeb,0x6a,0xf8,0x2e,0xc5,0xdf,0xcd,
0x7f,0x4f,0xb7,0x62,0xdd,0xc1,0x33,0x59,0xa3,0x3b,0x6b,0x88,0xe6,0xbf,0xa9,0xc7,
0x3f,0x0b,0x19,0x21,0xaa,0x68,0x13,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform texture2DArray src;
// layout(location = 0)out uvec4 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;
// }
// }
//
// 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;
// }
//
// srcValue *= 255.0;
//
// uvec4 destValue = uvec4(srcValue);
//
// 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;
// }