blob: dbad1e15287f9d7691840c6b8fc7520594f9fed8 [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.00000006.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000006[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x8b,0x53,0x95,0x55,
0x14,0xc5,0x3f,0xee,0x05,0x2e,0x0f,0x79,0x08,0x28,0xa1,0x62,0xf9,0xea,0x21,0x86,
0x58,0x60,0x24,0x50,0x92,0x91,0x48,0x18,0x15,0x50,0x99,0x26,0x5a,0x58,0x29,0x49,
0x1a,0x44,0x51,0x4a,0x6a,0x9a,0x49,0xe5,0xa3,0x97,0x58,0x89,0x56,0xa2,0x56,0xd3,
0xdf,0xd1,0x5f,0xd4,0xf4,0x98,0x69,0xa6,0xb3,0xcf,0xfd,0x6d,0x66,0x75,0xc7,0x8a,
0x99,0x33,0xdf,0xdd,0x6b,0xef,0xb3,0xcf,0xda,0x6b,0x9f,0x6f,0x7f,0xa4,0x53,0xab,
0x32,0x49,0x92,0x97,0x94,0x24,0x45,0xc9,0x8f,0x49,0xf6,0x6f,0x61,0x92,0x0a,0x48,
0x92,0x94,0x26,0x85,0xf1,0xb9,0xb5,0xb7,0xbf,0xb7,0x71,0x6c,0x7c,0xb8,0xb1,0xb9,
0xa5,0xc9,0xfc,0xe5,0x49,0x3a,0xc6,0x99,0xaf,0x22,0xc9,0x24,0xf9,0xe1,0x69,0xeb,
0xe0,0xde,0xfd,0xa3,0x86,0x97,0x85,0x75,0x33,0xac,0xca,0x10,0x67,0x78,0xc6,0x72,
0x84,0x5f,0x65,0x31,0xa7,0xed,0x49,0x92,0xee,0xa4,0x20,0xa9,0xe6,0xbc,0x55,0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62,0x77,0x64,0x0f,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform itexture2D 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;
// }
//
// ivec4 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;
// }