blob: 936df92c7cd0b922e372a82ffd505cf047bfc8bd [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.0000001A.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_0000001A[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xd9,0x4f,0x5d,0x55,
0x14,0xc6,0xcf,0x9d,0x29,0xc8,0x50,0xa0,0x45,0x1a,0xa9,0x76,0x20,0xd1,0x50,0xe1,
0x1a,0xb1,0x22,0xd8,0x26,0x58,0xb1,0x5a,0xd1,0x16,0x3a,0xa8,0xf0,0xe0,0x50,0x22,
0xad,0x42,0x55,0xd0,0xd8,0xc6,0xc4,0x18,0xa9,0x85,0x17,0x5b,0x15,0x62,0x48,0x35,
0x0a,0x89,0xc2,0x43,0x0b,0xa9,0x0f,0x26,0x3e,0x19,0x63,0xb4,0x04,0x5b,0x87,0x7f,
0xc6,0x38,0x24,0x26,0xee,0xb5,0xef,0x6f,0x35,0x5f,0x6e,0x34,0x25,0xd9,0x39,0x67,
0x7f,0x6b,0xfa,0xbe,0xb5,0xd7,0xd9,0xdc,0x4c,0x7a,0x47,0x21,0x49,0x52,0x49,0x65,
0x52,0x91,0xfc,0x96,0x94,0xfe,0x36,0x26,0xe9,0x80,0x24,0x49,0x55,0x92,0x8f,0xcf,
0xfd,0xfd,0x87,0xfb,0xdb,0x27,0x5f,0x1f,0x69,0xef,0xbc,0xaf,0x68,0xf6,0x9a,0x24,
0x13,0xfd,0xcc,0x56,0x9b,0x14,0x92,0x6c,0x78,0xda,0x1a,0x7f,0xfe,0xe4,0x29,0xc3,
0xab,0xc3,0xfa,0x2a,0xac,0xba,0xe0,0x67,0x78,0xc1,0x72,0x84,0xb7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,0xe1,0xf5,0x1d,0xfa,0xd6,0xe5,0x7f,
0x81,0xfb,0x2d,0xca,0xd9,0x5e,0xc3,0x67,0x9e,0x98,0x05,0xe1,0xf3,0x05,0x7c,0x5a,
0x84,0xcf,0x97,0xe0,0xce,0x67,0x59,0xf8,0x98,0x6d,0x29,0xac,0x65,0xea,0x2c,0x09,
0x9f,0xef,0xe1,0x73,0x8d,0x33,0x34,0x3e,0xee,0xb7,0x2c,0x7c,0xae,0xe3,0xb3,0x48,
0xcc,0x92,0xf0,0xb9,0x04,0x9f,0x29,0xe1,0x73,0x19,0xdc,0xf9,0xac,0x0a,0x1f,0xb3,
0xad,0x84,0xb5,0x4a,0x9d,0x15,0xe1,0xf3,0x03,0xbf,0x23,0xaf,0xcb,0x3c,0xb9,0xdf,
0xaa,0xf0,0xf9,0x15,0x9f,0x65,0x62,0x56,0xca,0xce,0x78,0x4e,0x7c,0x7f,0x61,0x1e,
0x66,0x89,0x5b,0x2d,0x9b,0xd3,0x19,0xf1,0xfd,0x99,0xf9,0x9e,0x26,0x6e,0x2e,0xfe,
0x5e,0xcb,0xc4,0xdf,0x69,0x66,0xfb,0x27,0x9c,0x5a,0x57,0x58,0xff,0x02,0x19,0x82,
0xa5,0x3d,0x18,0x0e,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 uvec4 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;
//
// 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;
// }
//
// 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;
// }
//
// uvec4 dstValue = uvec4(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;
// }
// }
//
// dst = dstValue;
// }