blob: 765552dc5da422f607d1b83670b9b10547a4bcf6 [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.00000011.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000011[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x6b,0x4c,0x96,0x65,
0x18,0x7e,0xef,0xef,0xe3,0x24,0xe2,0x81,0x90,0xa0,0x74,0x4d,0x84,0xb5,0xa6,0x8d,
0x81,0x40,0x2a,0x8a,0xca,0x3c,0x50,0x0b,0x03,0x74,0x54,0x6e,0x1e,0xd2,0x39,0x3b,
0x19,0x2b,0x62,0xe5,0x80,0x55,0xa3,0x9c,0xce,0x92,0x5f,0x2e,0xa6,0x2b,0xf5,0x97,
0x8b,0xe9,0x2c,0x99,0xb5,0x08,0xb7,0x66,0x7f,0x72,0xce,0x99,0x18,0x3a,0xa7,0xa8,
0x69,0x07,0xcd,0xc3,0xcf,0xd6,0x69,0x5a,0xcf,0xf5,0xde,0xd7,0x1d,0xf7,0xbe,0x72,
0x7d,0xdb,0xc3,0xfb,0x3e,0xd7,0x7d,0xba,0xee,0xeb,0x79,0x9e,0xf7,0x7d,0x49,0x26,
0x8a,0x33,0xa3,0x48,0xa2,0xec,0x28,0x2b,0xba,0x2c,0x51,0xfc,0xcb,0x8d,0x12,0x11,
0x6e,0x47,0x47,0x19,0xf1,0xb5,0xae,0x7e,0x59,0x7d,0xe9,0xab,0x6d,0xeb,0x4a,0x2b,
0xab,0xca,0x60,0x1f,0x1b,0x25,0x63,0x3f,0xd8,0xc6,0x45,0x99,0x51,0x5a,0xb8,0x62,
0xbc,0xb4,0xe6,0xf9,0x16,0xe0,0xa7,0xc2,0xb8,0x15,0xc6,0xf8,0xe0,0x07,0x3c,0x14,
0x88,0x1e,0x8d,0xd2,0xa3,0x72,0x4d,0x1f,0x15,0xf3,0x6a,0x98,0x10,0xcb,0x72,0x58,
0x82,0xd8,0x78,0x87,0x25,0x89,0x4d,0x70,0x58,0x1a,0xb1,0x42,0x87,0xa5,0x13,0x9b,
0xe4,0xb0,0x0c,0x62,0x93,0x1d,0x96,0x49,0xac,0xc4,0x61,0x59,0xc4,0x1e,0x72,0xd8,
0x28,0x62,0x0f,0x3b,0x2c,0x9b,0x58,0x99,0xc3,0x46,0x13,0xab,0x74,0x58,0x0e,0xb1,
0x99,0x0e,0x1b,0x43,0x6c,0x8e,0xc3,0xc6,0x12,0x9b,0x0f,0xbd,0x43,0xa7,0xa6,0x41,
0x5d,0xe8,0xf0,0x14,0x73,0x8f,0xe3,0x7c,0x38,0x5c,0xa7,0x50,0x43,0x9b,0x17,0xb9,
0x39,0xb4,0x7f,0x80,0xf3,0xbc,0x90,0x25,0x11,0xdb,0x93,0xb1,0x7e,0xb8,0xbf,0x37,
0xdc,0x65,0x50,0x8b,0xfc,0xe0,0x9f,0xc3,0x7b,0xac,0x43,0x41,0x98,0x8f,0x21,0xef,
0x04,0xe7,0x79,0xd4,0x2f,0x8d,0xf3,0x7c,0xda,0x31,0x9f,0x16,0xfe,0xc2,0x36,0x11,
0x7a,0x97,0x2e,0x99,0x3d,0x21,0x44,0x4d,0x72,0x38,0x78,0x2d,0xfd,0xfc,0x89,0x5a,
0x9b,0x3f,0x18,0x46,0x73,0xf3,0xe9,0xb9,0x36,0x87,0xce,0x35,0xd9,0x9b,0xe7,0xd9,
0x7c,0x6a,0x18,0x07,0xea,0xd6,0xd4,0x80,0x57,0x19,0x79,0x45,0x71,0x3f,0xb9,0xff,
0x68,0x67,0xfc,0x6c,0x94,0xfd,0xcf,0x30,0x9f,0xc9,0x21,0xe7,0x74,0xae,0x27,0x72,
0xcd,0xe6,0xbc,0x82,0xd8,0x34,0x6a,0x51,0x49,0x2d,0xe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,0x88,0xe3,0xf3,0x8a,0x28,0x6e,0x7c,0xda,0x1c,0x1f,
0xd8,0x5a,0xc3,0x68,0x63,0x9d,0x56,0xc7,0xe7,0x38,0x63,0x86,0xdd,0x73,0xca,0xfc,
0xda,0x1c,0x9f,0x0b,0xa2,0x3e,0xe0,0x78,0x9c,0xf9,0x8c,0xcf,0x6b,0xe4,0xd3,0xe5,
0xf8,0xbc,0x2e,0x8a,0x1b,0x9f,0x76,0xc7,0x07,0xb6,0x8d,0x61,0xb4,0xb3,0xce,0x46,
0xc7,0xe7,0x84,0xe8,0xff,0x0c,0x17,0x64,0x64,0xbf,0x9a,0x5f,0xbb,0xe3,0xf3,0x9d,
0xa8,0x0f,0x38,0x9e,0x60,0x3e,0xf8,0x76,0xd0,0x77,0xad,0xfb,0x66,0x5e,0x47,0x2d,
0x91,0xcf,0xea,0x1c,0x95,0x11,0xdc,0xbe,0x3f,0x2d,0xb6,0xc3,0xd5,0xb9,0x24,0x5a,
0x0b,0xb5,0x8f,0x72,0x1f,0xc1,0xb7,0x93,0xbe,0xcb,0x79,0xee,0xe0,0xbb,0x92,0xf9,
0x9a,0x79,0xee,0x32,0x79,0x56,0xad,0x0f,0x8b,0xe9,0x74,0xf9,0x2f,0x8a,0xd6,0x40,
0xcd,0x95,0x3c,0x03,0x73,0x43,0xc4,0x2d,0xda,0x6e,0x87,0x5d,0x32,0x33,0x8c,0xbf,
0x01,0x26,0xda,0xe5,0xfa,0xb0,0x12,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 ivec4 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;
// }
// }
//
// 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;
// }
//
// ivec4 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;
// }
//
// srcValue *= 255.0;
//
// ivec4 dstValue = ivec4(srcValue);
//
// 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);
// }