blob: 353cab0ed47c5747c1be7395b441c55a2318bcee [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.00000019.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000019[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x8b,0x53,0x55,0x55,
0x14,0xc6,0x0f,0xf7,0xc2,0xbd,0x3c,0xe4,0x21,0xa2,0x84,0x8a,0x25,0x4a,0x96,0x18,
0x62,0x81,0x91,0x40,0x49,0x46,0x92,0x51,0x0a,0x9a,0x95,0x50,0x46,0x92,0x8f,0x42,
0x2a,0x31,0xd3,0x24,0x14,0x53,0xb4,0xb4,0x92,0xf2,0xd1,0x4b,0xac,0x44,0x2b,0x41,
0xeb,0xbf,0xe8,0x2f,0x6a,0x7a,0xcc,0x34,0xd3,0x5e,0xe7,0xfe,0x16,0xf3,0xcd,0x1d,
0x2b,0x66,0xf6,0xdc,0xb3,0xbe,0xb5,0xf6,0xb7,0xbf,0xb5,0xd6,0x3e,0xeb,0x90,0x4c,
0x2c,0x4b,0x47,0x51,0x4e,0x54,0x18,0xe5,0x47,0xbf,0x44,0x99,0xbf,0xb9,0x51,0x22,
0x20,0x51,0x54,0x14,0xa5,0xe2,0xdf,0x8d,0x5d,0x5b,0xbb,0xea,0x87,0x0f,0x0e,0xd4,
0x37,0x36,0x35,0x98,0xbf,0x24,0x4a,0xc6,0x71,0xe6,0x2b,0x8d,0xd2,0x51,0x6e,0xf8,
0xb5,0xb5,0xbf,0x7f,0xdf,0x90,0xe1,0xc5,0x61,0xdd,0x0e,0xab,0x2c,0xc4,0x19,0x9e,
0x36,0x8e,0xf0,0x54,0x1c,0x73,0xda,0x9e,0x28,0xea,0x8c,0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,0xe1,0xff,0x3b,0xd3,0xe2,0xf1,0xd3,0x59,0x3d,0x9e,0xc8,0xba,
0xa3,0xe3,0x72,0xe7,0x7f,0x86,0xcf,0xb8,0x6e,0x63,0xff,0x1d,0x26,0x4b,0x73,0x58,
0xff,0x00,0xe6,0x99,0x7c,0x5d,0xd8,0x0f,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform utexture2DArray src;
// layout(location = 0)out ivec4 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;
//
// 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;
// }
//
// uvec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// if(params . premultiplyAlpha)
// {
// srcValue . rgb *= srcValue . a;
// }
// else if(params . unmultiplyAlpha && srcValue . a > 0)
// {
// srcValue . rgb /= srcValue . a;
// }
//
// ivec4 destValue = ivec4(srcValue);
//
// 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;
// }