blob: 034c7bc99047c5fbd62a82e24eb29de009d330b2 [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.00000021.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000021[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x8b,0x97,0x8e,0x55,
0x14,0xc6,0xdf,0xf9,0x66,0xe6,0x1b,0xc6,0x6d,0x64,0x42,0xa2,0x35,0x83,0xa4,0x46,
0x43,0x35,0xee,0x46,0xa1,0x5c,0xca,0x25,0xc6,0x44,0x52,0x9a,0x52,0x4c,0x32,0xc5,
0x28,0x2a,0xb7,0x48,0x46,0x92,0x50,0x51,0x8a,0x12,0x91,0x89,0x54,0x6e,0xa1,0x28,
0xb7,0x2e,0xa8,0x5c,0xca,0xad,0xfe,0x8b,0x56,0x97,0xb5,0xba,0x9c,0xfd,0xce,0x6f,
0xcf,0x7a,0xd6,0xb7,0xac,0x9a,0xb5,0xce,0x7a,0xbf,0xfd,0xec,0x7d,0x9e,0xf3,0xec,
0xbd,0xcf,0x39,0xef,0xf7,0x4d,0x7a,0xa2,0x4d,0x56,0x14,0xa5,0x45,0xd9,0x51,0x9d,
0xe8,0x97,0xa8,0xe6,0xaf,0x71,0x94,0x08,0x48,0x14,0xd5,0x8b,0x92,0xf1,0x73,0xc0,
0xe0,0x92,0xc1,0x85,0x95,0xd3,0xc6,0x17,0x16,0x75,0xee,0x64,0xfe,0x86,0x51,0x7a,
0x1c,0x67,0xbe,0x46,0x51,0x56,0x94,0x11,0x9e,0x36,0x26,0x97,0x95,0x57,0x18,0xde,
0x2e,0x8c,0x8b,0x61,0xe4,0x84,0x38,0xc3,0xb3,0x8c,0x23,0x7c,0x6a,0x17,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,0x79,0xe9,0xbb,0x69,0x39,
0xcf,0xf7,0x71,0xd3,0xe2,0xf1,0xe7,0x52,0x7a,0x7c,0x20,0x65,0x8f,0xee,0x90,0x3d,
0xff,0x33,0x7c,0xc6,0x75,0x11,0xfb,0xaf,0x70,0x13,0x75,0x0b,0xa3,0x0b,0xef,0xc5,
0x6c,0xb4,0xd9,0x6f,0xa4,0xae,0x21,0x2e,0x8b,0xdf,0x47,0xc6,0x55,0x4f,0xee,0xbb,
0xfa,0xe0,0xfb,0xc8,0xb1,0x11,0x58,0x03,0x72,0x6c,0x2c,0x39,0x36,0xe2,0xff,0x3c,
0x4d,0xe1,0xc9,0x11,0x9e,0xcb,0xe0,0x59,0xc0,0xfa,0xb9,0x60,0xf6,0xbf,0x89,0xbf,
0x43,0x6c,0x2e,0x73,0x9a,0xca,0x9c,0x66,0xcc,0xa9,0x1f,0xd4,0x25,0xe3,0xdf,0xc3,
0x35,0xf7,0x69,0x0b,0x7c,0xcd,0x85,0xef,0x4a,0xfc,0x2d,0xe2,0xf7,0x74,0x0d,0xd6,
0x0a,0xbc,0x25,0x6b,0xb4,0x62,0x0d,0xd3,0xfc,0x0f,0xf5,0xf8,0x17,0x08,0x2e,0x89,
0x19,0x48,0x13,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 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;
// }