blob: 4450db5d03f92a3fc9b77644a903a9793467d6ea [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.00000018.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000018[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0xfb,0x97,0x8d,0x65,
0x14,0xc7,0xdf,0x39,0xe7,0xcc,0x39,0x8c,0xdb,0xc8,0xe4,0x16,0xad,0xb9,0x20,0x35,
0x1a,0xaa,0x71,0x77,0x30,0x94,0xa1,0xdc,0x87,0x22,0xc9,0x25,0x15,0x13,0x93,0xcc,
0x74,0x11,0x31,0x2e,0x21,0x4a,0x24,0x95,0xa1,0x42,0x45,0x65,0x28,0x2a,0x97,0xa2,
0xa2,0x5c,0xba,0x99,0x54,0xa8,0x08,0xf5,0x43,0xff,0x41,0xab,0xcb,0x5a,0x5d,0x9e,
0xfd,0xcc,0x67,0x9f,0xb5,0xd7,0xbb,0x54,0xb3,0xd6,0xb3,0xde,0xb3,0xbf,0x7b,0x3f,
0xdf,0xe7,0xbb,0xf7,0x7e,0xde,0xe7,0x39,0x67,0xa2,0x91,0xbc,0x44,0x10,0xa4,0x05,
0x19,0x41,0x9d,0xe0,0xa7,0xa0,0xf6,0xaf,0x71,0x10,0x71,0x48,0x10,0xd4,0x0b,0xe2,
0xfe,0x59,0x3c,0xb8,0x64,0x70,0x41,0x79,0xc5,0x94,0x82,0xc2,0xce,0x9d,0xc4,0xdf,
0x30,0x88,0xfa,0x38,0xf1,0x35,0x0a,0x12,0x41,0xcc,0x3d,0x65,0xcc,0x98,0x34,0xad,
0x4c,0xf0,0x76,0x6e,0x5c,0x70,0x23,0xd3,0xc5,0x09,0x9e,0x10,0x0e,0x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7f,0xca,0x68,0xf9,0x36,0xa4,0xe5,0x3b,0xb0,0x5d,0x46,0xcb,0xf7,0xe0,
0xaa,0xe5,0xac,0xd1,0x22,0xbe,0x33,0x6e,0x9c,0x85,0xfb,0x8c,0xd1,0x72,0xce,0xf4,
0x5d,0xb4,0x9c,0xe3,0x37,0x8d,0x68,0xd1,0xf8,0xb3,0xa1,0x1e,0x1f,0x0a,0xed,0xd1,
0x3d,0x66,0xcf,0xff,0x08,0x9f,0x70,0x5d,0xc0,0xfe,0xd3,0xdd,0x1e,0xdd,0xdc,0xe8,
0xc2,0x3b,0x9e,0x81,0x36,0xf9,0xdd,0xd5,0xd5,0xc5,0x25,0xf8,0xcd,0x25,0x5c,0xf5,
0xcc,0xfe,0xab,0x0f,0xbe,0x9f,0x1c,0x1b,0x81,0x35,0x20,0xc7,0xc6,0x26,0xc7,0x46,
0xfc,0xef,0xa8,0x29,0x3c,0x99,0x86,0xe7,0x12,0x78,0x96,0xb1,0x7e,0x16,0x98,0xfc,
0xbf,0xe3,0x2f,0x17,0x9b,0xc5,0x9c,0xa6,0x66,0x4e,0x33,0xe6,0x2c,0x60,0x4e,0x0b,
0xb0,0xe6,0x86,0xe7,0x32,0xf0,0x96,0x5e,0x57,0xc2,0x63,0xad,0xb9,0x2b,0x5b,0xe2,
0x6f,0xc5,0x1a,0xad,0x59,0x43,0x34,0xff,0x4d,0x3d,0xfe,0x01,0x7d,0xa7,0xa9,0x3c,
0x9c,0x13,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform utexture2DArray 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 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;
// }
//
// uvec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// if(params . premultiplyAlpha)
// {
// srcValue . rgb *= srcValue . a;
// }
// else if(params . unmultiplyAlpha && srcValue . a > 0)
// {
// srcValue . rgb /= srcValue . a;
// }
//
// vec4 destValue = vec4(srcValue);
//
// destValue /= 255.0;
//
// 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;
// }