blob: a1f80b8b5e5b2cc6c6c185f45d385f65b2bfb1b0 [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.00000010.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000010[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x7b,0x6c,0xce,0x67,
0x14,0xfe,0x9d,0xb7,0x37,0xea,0xd2,0xba,0x95,0x2e,0x73,0x2d,0x99,0xa9,0xb9,0x0d,
0x23,0xa5,0xb4,0x4a,0x97,0x31,0x77,0x22,0x22,0xac,0xee,0x8c,0x9a,0x61,0xb2,0xcc,
0x86,0xb1,0xcc,0x26,0x96,0x48,0x2c,0xc1,0x9a,0x85,0x6d,0x22,0x26,0x73,0xc9,0x26,
0x36,0x86,0xbf,0xc4,0x42,0x76,0xf1,0xc7,0x22,0x13,0xb2,0xd1,0x64,0x89,0x4c,0xc8,
0x36,0xcd,0x4c,0xb1,0xbd,0x4f,0xcf,0x73,0x7c,0xc7,0x97,0xc9,0xbe,0xe4,0xf5,0x7d,
0xef,0x73,0xce,0x79,0xce,0x39,0xcf,0x7b,0xf9,0xfd,0x34,0x23,0x14,0xe5,0x24,0x89,
0x24,0xb9,0x49,0xa3,0x64,0x49,0x48,0x1a,0x3e,0x2d,0x92,0x10,0x91,0x24,0x69,0x92,
0x64,0x37,0x7c,0x57,0x8e,0x99,0x34,0xa6,0xd7,0x8a,0x95,0x73,0x7b,0xf5,0x1f,0xd0,
0x07,0xf6,0xe6,0x49,0x46,0x83,0x1f,0x6c,0x79,0x49,0x4e,0x92,0x19,0xbf,0x31,0x96,
0x56,0x2d,0xaa,0x06,0x5e,0x1f,0x47,0x9b,0x68,0xcc,0x8f,0x7e,0xc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,
0xb8,0xe7,0x1a,0x8b,0x62,0xe0,0x45,0x1c,0xee,0x85,0x26,0x8c,0xcb,0x25,0x37,0x34,
0x6d,0x2a,0x8a,0x9b,0xee,0xcd,0x45,0x63,0xf1,0x31,0x2c,0x8f,0x18,0xe0,0xf1,0x51,
0x7b,0x9c,0xcf,0x7c,0x51,0x5f,0xd8,0x9a,0x4a,0x2a,0x47,0x0b,0xe6,0xb8,0x92,0xa4,
0x72,0xb4,0x14,0xc5,0x67,0xc5,0x5e,0x71,0xde,0x5a,0xb1,0x27,0x70,0x04,0xda,0x6d,
0x3d,0x26,0x30,0xbe,0xda,0xad,0xc7,0x44,0x51,0xdc,0xd6,0x63,0x92,0x28,0x66,0xeb,
0x51,0xe5,0xd6,0x03,0xb6,0xc9,0x71,0x54,0x51,0xe3,0xc9,0xec,0x0d,0x77,0xc2,0x54,
0xd1,0xdc,0x09,0xe3,0xce,0xf3,0x77,0x7d,0xfc,0x0d,0xae,0xd3,0x8c,0xc1,0xf7,0xd7,
0xcc,0x75,0x46,0x34,0xae,0x3d,0x63,0x7e,0x70,0xb9,0x60,0xfb,0x26,0x8e,0x73,0x8c,
0xc3,0x77,0xd3,0xd8,0x23,0x72,0x7d,0x4b,0xbd,0x1e,0x63,0x5e,0x3c,0x67,0xdf,0x62,
0x1d,0xdf,0x89,0xda,0xf1,0xac,0xdd,0x40,0xec,0x7b,0x51,0xbc,0x27,0xf7,0xc8,0x79,
0x72,0x82,0xdf,0xe2,0xce,0xb2,0x96,0xa2,0x34,0x1f,0xd4,0xf4,0x4f,0xcc,0x76,0x9b,
0x58,0x1d,0x6b,0x98,0x1a,0x94,0x17,0x75,0x9d,0x65,0xad,0x38,0x3b,0x58,0x83,0x01,
0x41,0xed,0xad,0xdc,0x5a,0x23,0x66,0x3a,0x35,0x12,0xf6,0x5b,0x9b,0xa6,0xd1,0x05,
0xe6,0xbc,0xe0,0x34,0xfa,0x49,0x34,0xce,0x34,0xba,0xea,0x34,0x82,0xed,0x62,0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49,0x97,0x67,0x71,
0xd0,0x5c,0xc8,0x8d,0x98,0x3d,0xcc,0x73,0x8a,0xbe,0x35,0xee,0x39,0xba,0x8b,0x7c,
0x18,0xf6,0xf7,0xe0,0xe0,0x9e,0xa3,0x16,0x73,0xca,0xf1,0x2f,0x0a,0x9a,0x03,0x39,
0x77,0xf1,0x0c,0x94,0xc6,0x08,0xfc,0x5d,0x06,0xb6,0x7b,0x71,0x97,0x0c,0x8a,0xe3,
0x5f,0xac,0x76,0xb3,0xb4,0xc0,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 texture2DArray 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, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// dst = transformSrcValue(srcValue);
// }