blob: 20c1919e4f4864e48c9e2bd2d06c5915455838ef [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.0000000A.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_0000000A[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x8b,0x53,0xd4,0x55,
0x14,0xc7,0x7f,0xec,0xb2,0x2c,0x82,0x3c,0x04,0x94,0x50,0xb1,0x44,0xe9,0x21,0x86,
0x58,0x60,0x24,0x60,0x92,0x91,0x48,0x18,0x19,0xd8,0xc3,0x34,0xa0,0xc4,0x32,0x11,
0x53,0xa1,0xcc,0x48,0x05,0x4d,0xad,0xa4,0x7c,0xf4,0x12,0x2b,0xd1,0x4a,0x7c,0xfd,
0x1f,0xfd,0x45,0x4d,0x8f,0x99,0x66,0xba,0xe7,0xb7,0x9f,0xc3,0x7c,0xdb,0xb1,0x62,
0xe6,0xce,0xee,0xf9,0x9c,0x73,0xcf,0xfd,0x9e,0x73,0x1f,0x4b,0x32,0xb1,0x22,0x1d,
0x45,0x39,0x51,0x41,0x94,0x1f,0xdd,0x8d,0x32,0x7f,0x0b,0xa2,0x44,0x20,0x51,0x54,
0x18,0xe5,0xc5,0x9f,0x9b,0xbb,0x7b,0xbb,0xeb,0x0f,0x8f,0xee,0xae,0x6f,0x6c,0x6a,
0x30,0x7f,0x71,0x94,0x8c,0xe3,0xcc,0x57,0x12,0xa5,0xa3,0xdc,0xf0,0x69,0x63,0xff,
0xe0,0xde,0x11,0xe3,0x45,0x61,0xdc,0x0e,0xa3,0x34,0xc4,0x19,0x4f,0x5b,0x8e,0xf0,
0xad,0x28,0xce,0x69,0x73,0xa2,0xa8,0x33,0x4a,0x45,0xe5,0xac,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b,0x9b,0xc3,0xf8,0x1b,0x91,0xe1,0x87,0xbb,0xa0,0x0f,
0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform utexture2D src;
// layout(location = 0)out uvec4 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, params . srcOffset + srcSubImageCoords, params . srcMip);
//
// if(params . premultiplyAlpha)
// {
// srcValue . rgb *= srcValue . a;
// }
// else if(params . unmultiplyAlpha && srcValue . a > 0)
// {
// srcValue . rgb /= srcValue . a;
// }
//
// uvec4 destValue = uvec4(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;
// }