blob: fac9a0bc8b2aca1b9aff6d342af91cf0fe3f85cb [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.00000011.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000011[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x89,0x53,0xd5,0x55,
0x14,0xc7,0x7f,0xbc,0x07,0xef,0x21,0x2a,0x62,0x12,0x9a,0x61,0x03,0x62,0x66,0x61,
0x48,0x85,0xbb,0x0f,0x53,0x4b,0xa4,0x5c,0x52,0x24,0xcd,0x2c,0xa3,0x2c,0x25,0x93,
0x12,0x2c,0xa9,0x14,0xb7,0x4c,0xcc,0xcc,0xd4,0x4a,0xcb,0xd2,0x32,0x4d,0x93,0x34,
0x2b,0xb7,0xd4,0x92,0x72,0x6b,0x51,0x2b,0x97,0x72,0xab,0xff,0xa2,0x69,0x99,0x69,
0xb9,0xe7,0xf2,0x39,0xcc,0x99,0xdf,0x38,0xc5,0xcc,0x9d,0xdf,0x3b,0xdf,0x73,0xee,
0xf7,0x7e,0xcf,0x39,0xf7,0xde,0xdf,0x7b,0x44,0x23,0x79,0xf1,0x20,0x48,0x0a,0xd2,
0x82,0xd4,0xe0,0x97,0xa0,0xe9,0xaf,0x6d,0x10,0x71,0x48,0x10,0xb4,0x0c,0x62,0xfe,
0x59,0x32,0xbc,0x6c,0x78,0x41,0xcd,0xcc,0xc9,0x05,0x45,0x3d,0x0b,0xc5,0x9f,0x1e,
0x44,0x7d,0x9c,0xf8,0xda,0x04,0xf1,0x20,0xd9,0x3d,0x65,0x4c,0xaf,0xa8,0xac,0x12,
0xbc,0xab,0x1b,0x97,0xdc,0xc8,0x70,0x71,0x82,0xc7,0x85,0xc3,0x7d,0xea,0xea,0x39,
0x65,0x4e,0x10,0x0c,0x0b,0x52,0x82,0xee,0xac,0x97,0xc7,0x53,0xb1,0x24,0xb0,0x54,
0x83,0x45,0xc0,0x32,0x0c,0x16,0x05,0xcb,0x34,0x58,0x32,0x58,0x07,0x83,0xa5,0x80,
0x65,0x1b,0x2c,0x06,0x96,0x63,0xb0,0x38,0x58,0x17,0x83,0xa5,0x82,0x75,0x33,0x58,
0x0b,0xb0,0xee,0x06,0x4b,0x03,0x2b,0x34,0x58,0x4b,0xb0,0x22,0x83,0xb5,0x02,0xeb,
0x63,0xb0,0xd6,0x60,0x03,0x7c,0x9d,0xa2,0xcd,0xf9,0x4a,0xcd,0x26,0xb8,0x67,0x67,
0xea,0xa3,0x76,0xae,0xb1,0xa5,0xce,0xd7,0x60,0xb7,0x73,0xb3,0x22,0xde,0x1f,0xf5,
0xb5,0x91,0xcf,0x59,0xee,0x53,0x8c,0x3c,0x73,0x5c,0x7c,0x9c,0x3c,0x63,0x3e,0x2e,
0xd9,0xe7,0x17,0x03,0xcb,0x77,0x76,0x0c,0x3d,0xd9,0x05,0x23,0xfa,0x67,0x3a,0x86,
0x74,0x83,0xb7,0x73,0x63,0xcc,0xde,0x91,0x83,0xd4,0x96,0x1a,0x97,0x97,0x9f,0x2d,
0x56,0xbb,0xa3,0x1b,0x89,0xb4,0xc5,0x03,0xd5,0x96,0x7a,0x6f,0x2f,0xa9,0x48,0x5c,
0xe9,0xec,0x1c,0x34,0x48,0x6f,0xdb,0x3b,0x3b,0x17,0x3b,0x82,0xae,0xce,0x68,0xc8,
0xc5,0xdf,0x05,0x5d,0xc9,0xf8,0xaf,0x65,0xae,0xe0,0xfd,0xb1,0xbb,0x1a,0xbe,0xeb,
0x88,0x17,0x3e,0x59,0x2f,0x1f,0xfe,0xc0,0xd7,0x27,0xc3,0xd7,0x34,0x97,0xa1,0x5a,
0xf2,0xff,0x67,0xe4,0x34,0x3f,0x93,0x83,0x1b,0xe9,0x7b,0x77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,0x5c,
0x30,0x7d,0x17,0x2d,0x17,0xf8,0x3e,0x2e,0x5a,0x34,0xfe,0x7c,0xa8,0xc7,0x8d,0xa1,
0x3d,0xba,0xcb,0xec,0xf9,0x9f,0xe1,0x13,0xae,0x4b,0xd8,0x7f,0xb9,0x9b,0xa8,0x8f,
0x1b,0xbd,0x78,0x2f,0xa6,0xa1,0x4d,0x7e,0x23,0xf5,0x76,0x71,0x71,0x7e,0x1f,0x09,
0x57,0x4b,0x73,0xdf,0xb5,0x02,0x3f,0x40,0x8e,0x6d,0xc0,0x5a,0x93,0x63,0x5b,0x93,
0x63,0x1b,0xfe,0xcf,0x93,0x05,0x4f,0x86,0xe1,0xb9,0x02,0x9e,0x45,0xac,0x9f,0x09,
0x26,0xff,0x9b,0xf8,0xdb,0xc5,0x66,0x32,0x27,0xcb,0xcc,0x69,0xcf,0x9c,0x56,0x4e,
0x5d,0xcc,0xff,0x1e,0x6e,0xba,0x4f,0x3b,0xe2,0xeb,0x60,0xf8,0xae,0xc6,0xdf,0xd1,
0xbf,0xa7,0x9b,0xb0,0x4e,0xe0,0xd9,0xac,0xd1,0x89,0x35,0x44,0xf3,0x3f,0xd4,0xe3,
0x5f,0x85,0x99,0xd1,0xe2,0x48,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 ivec4 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;
//
// ivec4 destValue = ivec4(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;
// }