blob: e4a604eb3afbd84b5ba41507689f1566f00b97ce [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.00000004.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000004[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x8b,0x97,0x8e,0x55,
0x14,0xc6,0x5f,0xf3,0xcd,0x85,0x71,0x1b,0x99,0xdc,0xa2,0x35,0xe3,0x96,0x1a,0x0d,
0xd5,0xb8,0xfb,0x5c,0xcb,0xa5,0xdc,0x32,0x14,0x69,0x62,0x44,0x12,0x43,0x22,0x54,
0xee,0xc4,0x48,0xba,0xa0,0x32,0x53,0x51,0xa1,0x42,0x06,0x45,0x21,0xb7,0x6e,0xa4,
0x42,0x45,0xa8,0x3f,0xa0,0xff,0xa0,0xd5,0x65,0xad,0x2e,0x67,0xbf,0xf3,0xdb,0xb3,
0x9e,0xf5,0x2d,0xd5,0xac,0x75,0xd6,0xfb,0xed,0x67,0xef,0xf3,0x9c,0x67,0xef,0x7d,
0xce,0x79,0xbf,0x6f,0x12,0x69,0x6d,0xb2,0xa2,0xa8,0x56,0x94,0x1d,0xd5,0x8e,0x7e,
0x8a,0xaa,0xff,0x1a,0x45,0x69,0x01,0x89,0xa2,0xba,0x51,0x66,0xfc,0x1c,0x3c,0xac,
0x78,0x58,0xe1,0xdc,0x79,0x53,0x0a,0x8b,0xba,0x74,0x36,0x7f,0x83,0x28,0x11,0xc7,
0x99,0xaf,0x61,0x94,0x15,0xa5,0x87,0xa7,0x8d,0xb2,0xd2,0xe9,0xb3,0x0c,0x6f,0x1f,
0xc6,0x95,0x30,0x72,0x42,0x9c,0xe1,0x59,0xc6,0x11,0x3e,0xb5,0x8f,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84,
0xcf,0xb8,0xae,0x60,0xff,0x19,0xde,0x1e,0xdd,0xc3,0xe8,0xca,0x19,0xcf,0x46,0x9b,
0xfd,0x26,0xea,0x16,0xe2,0xb2,0xf8,0x3d,0x64,0x5c,0x75,0x65,0xff,0xd5,0x03,0x3f,
0x4a,0x8e,0x0d,0xc1,0xea,0x93,0x63,0x23,0xc9,0xb1,0x21,0xff,0xa7,0x69,0x02,0x4f,
0x8e,0xf0,0x5c,0x03,0x4f,0x39,0xeb,0xe7,0x82,0xd9,0xff,0x16,0xfe,0x0a,0xb1,0xb9,
0xcc,0x69,0x22,0x73,0x9a,0x32,0x67,0x39,0x73,0x9a,0x83,0x35,0x13,0x9e,0xeb,0xc0,
0x5b,0xc4,0xba,0xb2,0x62,0xac,0x15,0xef,0xca,0x16,0xf8,0x5b,0xb2,0x46,0x2b,0xd6,
0x30,0xcd,0x7f,0x53,0x8f,0x7f,0x00,0x7d,0xda,0xc9,0xab,0x08,0x13,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform itexture2D 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;
// }
//
// ivec4 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;
// }