blob: b1f3aac5861a08d45579dce74610336158ad9e69 [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.0000002A.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_0000002A[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xeb,0x4f,0x97,0x65,
0x18,0xc7,0x9f,0xdf,0x19,0x21,0x0e,0x02,0x4a,0xb8,0xb0,0x3c,0xb0,0xd9,0x30,0xa0,
0x45,0x46,0x90,0x6e,0x64,0x64,0x19,0xa5,0xe0,0xa1,0x82,0x17,0x1d,0x64,0xa1,0x05,
0x56,0x50,0x4b,0xd7,0xd6,0x5a,0x98,0xf0,0x26,0xad,0x60,0x8e,0x59,0x2b,0xd8,0x0a,
0x5e,0x28,0xcc,0x5e,0xb4,0xf5,0xaa,0xb5,0x96,0x32,0xd2,0x0e,0xff,0x4c,0xeb,0xb0,
0xb5,0x75,0x5f,0xf7,0xef,0x73,0xb9,0x6f,0xbf,0xd5,0x64,0xbb,0xf7,0x3c,0xf7,0xf7,
0x3a,0x7d,0xbf,0xd7,0x7d,0x3d,0x37,0xbf,0x4c,0x7a,0x5b,0x21,0x49,0x52,0x49,0x79,
0x52,0x96,0xfc,0x9a,0x14,0xff,0xd6,0x27,0xe9,0x80,0x24,0x49,0x45,0x92,0x8f,0xcf,
0x7d,0x7d,0x87,0xfa,0x5a,0x27,0xde,0x18,0x6e,0xed,0xb8,0xbf,0xdd,0xec,0x55,0x49,
0x26,0xfa,0x99,0xad,0x3a,0x29,0x24,0xd9,0xf0,0xb4,0x35,0xf6,0xc2,0x89,0x93,0x86,
0x57,0x86,0xf5,0x55,0x58,0x35,0xc1,0xcf,0xf0,0x82,0xe5,0x08,0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50,0x6f,0x5e,0x78,0x7d,0x87,0xbe,0x35,
0xf9,0x5f,0xe0,0x7e,0x0b,0x72,0xb6,0xd7,0xf1,0x99,0x23,0x66,0x5e,0xf8,0x7c,0x01,
0x9f,0x26,0xe1,0xf3,0x25,0xb8,0xf3,0x59,0x12,0x3e,0x66,0x5b,0x0c,0x6b,0x89,0x3a,
0x8b,0xc2,0xe7,0x7b,0xf8,0x5c,0xe7,0x0c,0x8d,0x8f,0xfb,0x2d,0x09,0x9f,0x1b,0xf8,
0x2c,0x10,0xb3,0x28,0x7c,0x2e,0xc1,0x67,0x52,0xf8,0x5c,0x06,0x77,0x3e,0x2b,0xc2,
0xc7,0x6c,0xcb,0x61,0xad,0x50,0x67,0x59,0xf8,0xfc,0xc0,0xef,0xc8,0x1b,0x32,0x4f,
0xee,0xb7,0x22,0x7c,0x7e,0xc1,0x67,0x89,0x98,0xe5,0x92,0x33,0x9e,0x15,0xdf,0x9f,
0x99,0x87,0x19,0xe2,0x56,0x4a,0xe6,0x74,0x5a,0x7c,0x7f,0x62,0xbe,0xa7,0x88,0x9b,
0x8d,0xbf,0xd7,0x32,0xf1,0x77,0x9a,0xd9,0xfe,0x0e,0xa7,0xd6,0x19,0xd6,0x3f,0x76,
0x66,0x32,0xbe,0x18,0x0e,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform utexture3D 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;
// }