blob: 893fdbb4c1cad3f3a0b3b23b64dc291909be6f5f [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.00000000.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000000[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x5b,0x6c,0x55,0x45,
0x14,0x3d,0x7b,0x5a,0x0a,0xa5,0x40,0x0b,0x22,0xf2,0x90,0x06,0x68,0x51,0x10,0x52,
0x81,0x14,0x41,0x4a,0xcb,0x4b,0xa8,0xd2,0x96,0x0a,0x0d,0x01,0x41,0x9e,0x05,0x14,
0x22,0x85,0x20,0x18,0xe0,0xc3,0xf0,0xf2,0x11,0x13,0x49,0x50,0xf8,0x00,0x91,0x18,
0x34,0x42,0x50,0x9b,0x46,0x09,0x10,0x63,0x8c,0x06,0x11,0xc5,0x1f,0x90,0x40,0x54,
0xea,0x07,0x20,0x02,0x2a,0x7c,0x81,0xbc,0xc1,0x59,0xdd,0x6b,0x73,0x37,0x37,0x1a,
0x6f,0x3a,0x3d,0x77,0xd6,0x7e,0xad,0xbd,0x66,0xe6,0x9c,0xd3,0x66,0x84,0x82,0xe6,
0x49,0x22,0x49,0xcb,0xa4,0x45,0x32,0x37,0x24,0x4d,0x9f,0xb6,0x49,0x88,0x48,0x92,
0xe4,0x24,0x59,0x4d,0xd7,0xf2,0xca,0x9a,0xca,0xa2,0x17,0x97,0xce,0x29,0x2a,0x1e,
0xd8,0x0f,0xf6,0x36,0x49,0x46,0x93,0x1f,0x6c,0xb9,0x49,0xf3,0x24,0x33,0x5e,0x31,
0x16,0xce,0x9a,0x5f,0x07,0xfc,0x06,0x7c,0xa2,0x31,0x2f,0xfa,0x01,0x8f,0x05,0x92,
0x27,0x93,0x66,0xc9,0x28,0x4d,0x9f,0x14,0xf0,0x6a,0x98,0x10,0x6b,0xe1,0xb0,0x40,
0x2c,0xcf,0x61,0x19,0xc4,0xda,0x3b,0x2c,0x93,0x58,0x47,0x87,0x35,0x23,0xf6,0xa0,
0xc3,0xb2,0x88,0x75,0x73,0x58,0x73,0x62,0x85,0x0e,0x6b,0x41,0xac,0x97,0xc3,0xb2,
0x89,0xf5,0x75,0x58,0x4b,0x62,0xfd,0x1c,0x96,0x43,0xac,0xd8,0x61,0xad,0x88,0x0d,
0x76,0x58,0x6b,0x62,0x43,0x1d,0xd6,0x86,0xd8,0x70,0xe8,0x1d,0x3b,0x35,0x0d,0xca,
0x63,0x87,0x37,0x98,0x3b,0x97,0xf3,0xcc,0x28,0x58,0x0f,0x6a,0x68,0xf3,0xee,0x6e,
0x0e,0xed,0xf3,0x39,0xbf,0x2f,0x66,0x41,0x9e,0xee,0x31,0x67,0x06,0x73,0x76,0x88,
0xdf,0xb2,0xa8,0xc5,0xfd,0xd1,0x3f,0x97,0xdf,0xb1,0x0e,0x0f,0xc4,0x79,0x1e,0x6b,
0x05,0xce,0x3b,0x50,0x3f,0x68,0xdd,0x27,0xfe,0xc6,0xf7,0xae,0xd0,0xb7,0xa8,0xaa,
0xa4,0x7d,0xf4,0xca,0x77,0x38,0x7a,0x98,0xb0,0x6f,0xdc,0x08,0x9b,0x43,0xc7,0x89,
0x13,0x8f,0x95,0xd9,0xfc,0x91,0x38,0x4a,0x5b,0xbe,0x36,0xcc,0xe6,0xd0,0xb4,0xbe,
0x7c,0x56,0xa9,0xcd,0xfb,0xc7,0xf1,0x7b,0x7d,0xcf,0xbb,0x73,0x68,0xb4,0x65,0x73,
0xa7,0xe1,0xe0,0x39,0x92,0x3c,0xf1,0xc9,0x8f,0xbb,0x74,0x14,0xf7,0x87,0xf1,0xb5,
0x31,0xf2,0x7f,0x86,0xf9,0x74,0x8b,0x39,0x9f,0xe0,0xfa,0x22,0x57,0x09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,0x02,
0xdb,0xad,0xb8,0x4b,0x06,0xc7,0xf1,0x0f,0xf6,0x04,0xe8,0x0b,0x3c,0x16,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_GOOGLE_include_directive : require
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform texture2D src;
// layout(location = 0)out vec4 dst;
//
// #line 1 "shaders/src/ImageCopy.inc"
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 dstOffset;
// int srcMip;
// int srcLayer;
// int srcSampleCount;
//
// 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);
// }
// }
//
// ivec2 transformImageCoords(ivec2 glFragCoords)
// {
// ivec2 imageCoordsOut = glFragCoords - params . dstOffset;
//
// if(params . flipX)
// {
// imageCoordsOut . x = - imageCoordsOut . x;
// }
// if(params . flipY)
// {
// imageCoordsOut . y = - imageCoordsOut . y;
// }
// if(params . rotateXY)
// {
// imageCoordsOut . xy = imageCoordsOut . yx;
// }
//
// return imageCoordsOut;
// }
//
// vec4 transformSrcValue(vec4 srcValue)
// {
//
// 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;
// }
// }
//
// return dstValue;
// }
// #line 56 "shaders/src/ImageCopy.frag"
//
// void main()
// {
// ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord . xy));
//
// vec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip);
//
// dst = transformSrcValue(srcValue);
// }