blob: 2b3c3602cbda038f82b725ef96cdd1a3bf682bd8 [file] [log] [blame]
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 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.00000003.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000003[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x59,0x6c,0x55,0x55,
0x14,0xbd,0xe7,0xbd,0x0e,0x4c,0x2a,0x44,0xac,0x40,0x29,0x08,0xd4,0xc4,0x30,0xb5,
0xa1,0xa5,0x0c,0xa5,0x7d,0xb4,0x02,0x2d,0x0a,0x65,0xa8,0x4c,0x6d,0xa2,0x14,0x68,
0x05,0x5b,0x68,0xad,0x10,0x86,0x42,0x99,0x64,0x30,0x26,0x4d,0x4c,0x9a,0x54,0xa0,
0x8a,0xca,0x50,0xa0,0x08,0xd2,0x86,0x40,0x01,0xf5,0x03,0x15,0x12,0x7f,0xfc,0x21,
0x41,0x85,0x0f,0x41,0xa1,0x31,0x04,0x8d,0xd2,0x08,0x34,0x8a,0x67,0xdf,0xb3,0x76,
0xdf,0xca,0x8d,0xc4,0x97,0x9c,0xdc,0x77,0xd6,0x9e,0xd6,0x5e,0xe7,0x9c,0x7b,0xef,
0x7b,0xe1,0xd0,0xb0,0x78,0xcf,0x33,0x5e,0x0f,0xaf,0x9b,0xf7,0xa5,0xf1,0xfc,0x4f,
0x1f,0x2f,0xe4,0x19,0x5c,0xc7,0xd8,0x6b,0x4f,0x2f,0xce,0x9f,0xe7,0xcd,0x28,0x9c,
0x31,0xfa,0xad,0xd5,0xcb,0x46,0xa7,0x8f,0x4d,0x15,0xbf,0x27,0xbd,0xb0,0xef,0x2f,
0xb6,0xa7,0xbc,0x78,0x2f,0xc6,0x5e,0x65,0xac,0x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fb,0xff,0xcd,
0x88,0xed,0x6f,0xdb,0xd8,0x78,0x3b,0xfe,0x05,0xfc,0x0e,0x7e,0xc9,0x90,0x16,0x00,
0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform sampler2D src;
// layout(location = 0)out vec4 dst;
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 dstOffset;
// int srcMip;
// int srcLayer;
//
// bool flipX;
// bool flipY;
//
// bool premultiplyAlpha;
// bool unmultiplyAlpha;
//
// bool dstHasLuminance;
// bool dstIsAlpha;
//
// bool srcIsSRGB;
// bool dstIsSRGB;
//
// int dstDefaultChannelsMask;
// 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;
// }
// }
//
// 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 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset;
//
// ivec2 srcSubImageCoords = dstSubImageCoords;
//
// if(params . flipX)
// {
// srcSubImageCoords . x = - srcSubImageCoords . x;
// }
// if(params . flipY)
// {
// srcSubImageCoords . y = - srcSubImageCoords . y;
// }
// if(params . rotateXY)
// {
// srcSubImageCoords . xy = srcSubImageCoords . yx;
// }
//
// vec4 srcValue = texture(
// src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), 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;
// }
//
// vec4 dstValue = vec4(srcValue);
//
// if(params . dstIsSRGB)
// {
//
// dstValue . r = sRGBToLinear(dstValue . r);
// dstValue . g = sRGBToLinear(dstValue . g);
// dstValue . b = sRGBToLinear(dstValue . b);
// }
//
// if(params . dstHasLuminance)
// {
// dstValue . rg = dstValue . ra;
// }
// else if(params . dstIsAlpha)
// {
// dstValue . r = dstValue . a;
// }
// else
// {
// int defaultChannelsMask = params . dstDefaultChannelsMask;
// if((defaultChannelsMask & 2)!= 0)
// {
// dstValue . g = 0;
// }
// if((defaultChannelsMask & 4)!= 0)
// {
// dstValue . b = 0;
// }
// if((defaultChannelsMask & 8)!= 0)
// {
// dstValue . a = 1;
// }
// }
//
// dst = dstValue;
// }