blob: e3e9b34ea2604c6484e48226ee4042216c5731ef [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.00000022.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000022[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x8b,0x97,0x8e,0x55,
0x14,0xc6,0xdf,0xb9,0x7d,0xc3,0xb8,0x8d,0x4c,0x48,0xb4,0x66,0x90,0xd4,0x68,0xa8,
0xc6,0xdd,0x10,0xca,0xa5,0x5c,0x62,0x4c,0x24,0xa5,0x29,0xc5,0xa4,0x51,0x8c,0xa2,
0x72,0x97,0x8c,0x24,0xa1,0xa2,0x14,0x25,0x22,0x13,0xa9,0x88,0x50,0x51,0xb9,0x74,
0x43,0x65,0x54,0x6e,0xf5,0x4f,0xb4,0xba,0xac,0xd5,0xe5,0xec,0x77,0x7e,0x7b,0x7a,
0xd6,0xb7,0xac,0x9a,0xb5,0xce,0x7a,0xbf,0xfd,0xec,0x7d,0x9e,0xf3,0xec,0xbd,0xcf,
0x39,0xef,0xf7,0x4d,0x5a,0x6a,0x9b,0xcc,0x28,0x4a,0x89,0xb2,0xa2,0x3a,0xd1,0xcf,
0x51,0xcd,0x5f,0xe3,0x28,0x35,0x20,0x51,0x54,0x2f,0x4a,0xc4,0xcf,0x81,0x43,0x8a,
0x87,0x14,0x54,0x4c,0x9f,0x50,0x50,0xd8,0xb9,0x93,0xf9,0x1b,0x46,0x69,0x71,0x9c,
0xf9,0x1a,0x45,0x99,0x51,0x7a,0x78,0xda,0x28,0x2f,0x2d,0x9b,0x62,0x78,0xbb,0x30,
0xce,0x87,0x91,0x1d,0xe2,0x0c,0xcf,0x34,0x8e,0xf0,0xa9,0x5d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0e,0xe3,0x0c,0xdc,0xa7,0x45,0xcb,0x59,0xe9,0xbb,0x69,0x39,0x4b,0x8d,
0x4c,0x8b,0xc7,0x9f,0x49,0xea,0xf1,0xc1,0xa4,0x3d,0xba,0x4b,0xf6,0xfc,0x4f,0xf0,
0x19,0xd7,0x79,0xec,0x3f,0xc3,0x4d,0xd4,0x2d,0x8c,0x2e,0xbc,0x17,0xb3,0xd0,0x66,
0xbf,0xa1,0xba,0x86,0xb8,0x4c,0x7e,0x2f,0x19,0x57,0x3d,0xb9,0xef,0xea,0x83,0xef,
0x27,0xc7,0x46,0x60,0x0d,0xc8,0xb1,0xb1,0xe4,0xd8,0x88,0xff,0x03,0x35,0x85,0x27,
0x5b,0x78,0x2e,0x82,0x67,0x11,0xeb,0xe7,0x80,0xd9,0xff,0x2e,0xfe,0x0a,0xb1,0x39,
0xcc,0x69,0x2a,0x73,0x9a,0x31,0xa7,0x7e,0x50,0x97,0x88,0x7f,0x2f,0xd7,0xdc,0xa7,
0x2d,0xf0,0x35,0x17,0xbe,0x4b,0xf1,0xb7,0x88,0xdf,0xd3,0x35,0x58,0x2b,0xf0,0x96,
0xac,0xd1,0x8a,0x35,0x4c,0xf3,0xdf,0xd4,0xe3,0x1f,0xe6,0x97,0xaf,0x6c,0x68,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 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;
// }