blob: 460a28d662f0aa307f0d19db9f5422999860e627 [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.00000008.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000008[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0xf9,0x73,0x54,0x45,
0x10,0xc7,0x5f,0x76,0x37,0xbb,0x10,0x20,0x04,0x89,0x1c,0x11,0xac,0x84,0x4b,0x34,
0x18,0x50,0x43,0x38,0x97,0x70,0x28,0x87,0x72,0x49,0x40,0x41,0x8c,0x10,0x04,0x11,
0x21,0x11,0x39,0x04,0xd4,0x70,0x2b,0x87,0x88,0x07,0xa0,0x02,0x2a,0xa8,0x80,0x4a,
0x30,0x1c,0x0a,0x22,0x20,0x87,0x07,0x20,0x2a,0xa0,0x12,0x01,0xfd,0xdd,0xff,0xc0,
0xf2,0xa8,0xf2,0x98,0x9e,0xfd,0xf4,0xda,0xbe,0x42,0x4d,0xd5,0xd4,0xdb,0xfe,0x76,
0xcf,0x77,0xbe,0xdd,0x3d,0x33,0x6f,0x37,0xd1,0x48,0xdb,0x44,0x10,0x64,0x04,0x59,
0x41,0xbd,0xe0,0x87,0x20,0xf5,0xd7,0x24,0x88,0x38,0x24,0x08,0x1a,0x04,0x71,0xff,
0x1c,0x34,0xb4,0x6c,0x68,0xd1,0xec,0x39,0x93,0x8b,0x8a,0xbb,0x76,0x11,0x7f,0x76,
0x10,0xf5,0x71,0xe2,0x6b,0x1c,0x24,0x82,0x98,0x7b,0xca,0xa8,0xac,0x98,0x56,0x25,
0x78,0x07,0x37,0x2e,0xbb,0x91,0xe3,0xe2,0x04,0x4f,0x08,0x87,0xfb,0xd4,0xc1,0x73,
0xca,0x9c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a,0x5f,0x17,0xea,0xf1,0xe1,0xd0,0x1e,0xdd,0x63,0xf6,0xfc,0xf7,
0xf0,0x09,0xd7,0x65,0xec,0xdf,0xdd,0xdb,0xa3,0xbb,0x1b,0x25,0x9c,0xf1,0x2c,0xb4,
0xc9,0x6f,0xa2,0x6e,0x2e,0x2e,0xc1,0xef,0x21,0xe1,0x6a,0x60,0xf6,0x5f,0x43,0xf0,
0x23,0xe4,0xd8,0x18,0xac,0x11,0x39,0x36,0x31,0x39,0x36,0xe6,0xff,0x36,0xcd,0xe0,
0xc9,0x31,0x3c,0x57,0xc1,0xb3,0x92,0xf5,0x73,0xc1,0xe4,0x7f,0x0d,0x7f,0xb8,0xd8,
0x5c,0xe6,0x34,0x33,0x73,0x9a,0x33,0x67,0x09,0x73,0x5a,0x82,0xb5,0x30,0x3c,0xd7,
0x80,0xe7,0x79,0x5d,0x09,0x8f,0xb5,0xe6,0x5d,0x99,0x87,0xbf,0x15,0x6b,0xb4,0x66,
0x0d,0xd1,0xfc,0x27,0xf5,0xf8,0x0b,0x56,0x7a,0xe2,0x6c,0x18,0x13,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform utexture2D 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, params . srcOffset + srcSubImageCoords, 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;
// }