blob: 96c49e05bdec4c44df7db938e77a4d72fbc1e629 [file] [log] [blame]
// 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.00000010.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000010[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x6b,0x4c,0x96,0x65,
0x18,0x7e,0x9f,0xef,0xe3,0xe0,0xa9,0xd2,0x65,0x98,0x8a,0xa6,0x62,0x5b,0x4e,0x07,
0x16,0x50,0x2a,0x71,0xf0,0x48,0x96,0x08,0x61,0x1e,0x90,0x2d,0x86,0x01,0xa9,0xa4,
0x64,0x92,0x26,0x82,0xe2,0x69,0xba,0x36,0xdb,0x1a,0x1b,0x25,0x34,0x2a,0x0f,0x68,
0x50,0x24,0xcc,0x29,0x92,0xf5,0xc3,0x4a,0xb6,0xfe,0xf4,0xa7,0x66,0xa5,0x3f,0xd2,
0x0a,0xd7,0x9c,0xb5,0x12,0x27,0xd2,0x8c,0x9e,0xfb,0x7d,0xae,0xdb,0xef,0xda,0x5b,
0x2e,0xb7,0x67,0xef,0xf7,0x5c,0xf7,0xe9,0xba,0xaf,0xe7,0xf0,0xbe,0x12,0x0e,0x25,
0xc4,0x7a,0x9e,0xf1,0x86,0x78,0x83,0xbc,0xcf,0x8c,0xe7,0xff,0x1b,0xe1,0x85,0x3c,
0xf9,0x39,0xd4,0x8b,0xf1,0x9f,0xd9,0x8b,0x96,0x2c,0x4a,0xdc,0x58,0x59,0x92,0x98,
0x92,0x3a,0x5d,0xec,0xf7,0x7a,0x61,0xdf,0x4f,0x6c,0xf7,0x79,0xb1,0x5e,0x94,0x7d,
0xca,0x58,0x57,0xbc,0x66,0xbd,0xe0,0x33,0x65,0x6e,0x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0xce,0x1a,0x25,0x1b,0x87,0xab,
0x46,0xa9,0xc8,0x39,0x8d,0x34,0x4a,0x04,0x97,0xb8,0x80,0x4f,0x0a,0x69,0x94,0x4a,
0x1a,0xb5,0x18,0x97,0x57,0x78,0x25,0x82,0xab,0x6a,0xf4,0xba,0x71,0xf6,0xbd,0xe0,
0xa9,0x1a,0xd5,0x41,0xa3,0x10,0xfa,0xcd,0x0e,0x68,0x94,0x86,0x9a,0x69,0xa4,0x51,
0xba,0x71,0x71,0xaa,0xd1,0x02,0xd2,0x48,0x6c,0x19,0x72,0x4e,0x11,0x37,0x9b,0x34,
0x9a,0x4b,0x1a,0xd5,0x05,0x34,0x9a,0x67,0x9c,0x9d,0x35,0x9a,0x6f,0x1c,0xae,0x1a,
0x65,0x23,0x67,0x06,0x69,0x94,0x05,0x2e,0x71,0x01,0x9f,0x05,0xa4,0x51,0x36,0x69,
0xf4,0xa1,0x71,0x79,0x85,0x57,0x16,0xb8,0xaa,0x46,0xfb,0x8d,0xb3,0x8b,0x56,0x21,
0xe4,0xd3,0xb3,0xb7,0x07,0xf7,0x9b,0xf8,0xb5,0x61,0xaf,0x95,0x21,0x26,0xdb,0x44,
0xce,0xfc,0x5b,0x38,0xf3,0xf5,0x74,0xe6,0xdf,0x06,0xae,0x67,0xfe,0x00,0x30,0x3d,
0xf3,0x8d,0x74,0xe6,0xc5,0xd6,0x20,0xef,0x01,0xd4,0x3d,0x42,0xf7,0xc9,0x51,0xe4,
0x6e,0xa6,0xdc,0xc7,0x80,0x6b,0xee,0x0f,0x80,0x69,0xee,0x56,0xca,0x2d,0xb6,0x16,
0xdf,0xd7,0xe5,0x6e,0xa1,0x7d,0xf0,0x11,0xfa,0x92,0x6f,0x8a,0x2e,0xe4,0xfa,0x58,
0x71,0x68,0xa1,0x71,0xad,0xd0,0x42,0x7c,0x8e,0xa3,0xe6,0x11,0xf8,0xb7,0xa0,0x6e,
0x07,0xd5,0x15,0x9f,0x76,0x3b,0x3a,0x10,0xdf,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,0x98,0x16,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 vec4 dst;
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 dstOffset;
// int srcMip;
// int srcLayer;
//
// 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;
// }
// }
//
// 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 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset;
//
// ivec2 srcSubImageCoords = dstSubImageCoords;
//
// 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 dstValue = vec4(srcValue);
//
// if(params . dstIsSRGB)
// {
//
// dstValue . r = sRGBToLinear(dstValue . r);
// dstValue . g = sRGBToLinear(dstValue . g);
// dstValue . b = sRGBToLinear(dstValue . b);
// }
//
// 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;
// }
// }
//
// dst = dstValue;
// }