blob: cdb0a5d5f1f6e55ed3a7894afa7ad7d407a65546 [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.00000015.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000015[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xcb,0x6f,0x55,0x55,
0x14,0xc6,0xf7,0x3e,0xb7,0xed,0xbd,0x05,0x4b,0x5b,0xb4,0x2f,0xd4,0xb6,0x58,0x4c,
0xd5,0xb6,0x58,0xd2,0x56,0x30,0xa2,0x51,0x42,0xa0,0x02,0x95,0xc2,0x75,0xd6,0x81,
0x31,0x71,0xe2,0x40,0x18,0xe8,0x88,0x81,0x31,0x46,0x34,0xe9,0x8c,0x7f,0x81,0x87,
0x68,0x4c,0x45,0x8d,0xa8,0x20,0x8f,0x21,0xf8,0x20,0x9a,0xaa,0x8d,0xa6,0x6a,0x63,
0x47,0x6a,0x63,0x84,0xd8,0xda,0x8a,0xa5,0x71,0xad,0xb3,0x7f,0xcb,0xae,0x54,0xa3,
0x24,0x3b,0xe7,0xec,0x6f,0xbd,0xbe,0x6f,0xad,0x75,0x4f,0x29,0x64,0x1d,0xc5,0x10,
0x62,0x58,0x15,0x4a,0xe1,0xf1,0x18,0xf2,0x7f,0xf5,0x21,0x0b,0xfa,0xba,0x3a,0x54,
0xe5,0xcf,0x9d,0x7b,0xca,0x7b,0x36,0x3e,0xfb,0xdc,0x53,0x1b,0xfb,0x07,0x7a,0xd5,
0xbe,0x26,0x14,0x72,0x3f,0xb5,0xd5,0x86,0x62,0xa8,0x90,0xa7,0x9e,0x67,0x9e,0x7c,
0xfa,0x80,0xe2,0x27,0xe4,0x5c,0x94,0x53,0x27,0x7e,0x8a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0xcd,0x7d,0x6b,0xda,0xe1,0x75,0xd8,0x7d,0x07,
0xd6,0xc7,0x84,0x5f,0x22,0x7f,0x47,0x4c,0xd8,0xa8,0xdb,0xf5,0x0d,0x31,0xe1,0x23,
0x70,0xed,0x74,0x5c,0xd5,0x76,0xa7,0x9c,0x4e,0xea,0xe9,0xbb,0xf1,0xda,0x4e,0xcc,
0x90,0xfb,0x5b,0x60,0x7e,0x9d,0x6e,0xb6,0x7b,0xe1,0xae,0x5c,0xb7,0x93,0xcf,0xf8,
0xdc,0x0d,0x9f,0x23,0x8e,0xcf,0x3d,0x31,0xe1,0xc6,0xa7,0xc7,0xf1,0x51,0x5b,0x97,
0x9c,0x1e,0xea,0x74,0x39,0x3e,0x3b,0x88,0xd1,0x7a,0x19,0x7c,0xcc,0xaf,0xc7,0xf1,
0x19,0x8e,0xc9,0x47,0x39,0xee,0x20,0x9f,0xf1,0xb9,0x17,0x3e,0x65,0xc7,0xa7,0x37,
0x26,0xdc,0xf8,0xf4,0x39,0x3e,0x6a,0xdb,0x24,0xa7,0x8f,0x3a,0x9b,0x1c,0x9f,0xc1,
0x98,0xfe,0x8f,0x32,0x1c,0x97,0xf7,0xc9,0xfc,0xfa,0x1c,0x9f,0x72,0x4c,0x3e,0xca,
0x71,0x90,0x7c,0x7e,0xc6,0xfd,0xce,0x77,0x7f,0x4c,0xfb,0xa0,0x3b,0x53,0xa6,0xae,
0xdf,0xd3,0x01,0xe7,0xbb,0x2f,0xa6,0xfd,0xd6,0x7d,0xd7,0x38,0xcd,0xf3,0x90,0x30,
0xb9,0x88,0xed,0x86,0x4c,0x6d,0x8b,0x9c,0xbf,0x00,0x5e,0xb4,0x44,0xba,0x20,0x0e,
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 itexture2DArray 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;
//
// 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(ivec4 srcValue)
// {
//
// if(params . premultiplyAlpha)
// {
// srcValue . rgb *= srcValue . a;
// }
// else if(params . unmultiplyAlpha && srcValue . a > 0)
// {
// srcValue . rgb /= srcValue . a;
// }
//
// 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));
//
// ivec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// dst = transformSrcValue(srcValue);
// }