blob: 2ee94abf2d8fc550e633e3e9d61b0e2fa1a98d67 [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.00000024.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000024[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0xf9,0x73,0x54,0x45,
0x10,0xc7,0x5f,0x76,0x37,0xbb,0x24,0x5c,0x41,0x22,0x97,0x60,0x25,0x5c,0xa2,0x89,
0x21,0x6a,0x20,0x5c,0xcb,0xa9,0x40,0x34,0x5c,0x09,0x28,0x88,0x11,0x82,0xa8,0x80,
0x10,0x94,0x44,0x11,0xe4,0x16,0x25,0x51,0x04,0x11,0x0f,0x40,0x05,0x54,0x50,0x01,
0x81,0xa8,0x5c,0x02,0x0a,0xca,0xe5,0x01,0xa2,0x02,0x2a,0x08,0xe8,0x4f,0xfe,0x07,
0x96,0x47,0x95,0xc7,0xf4,0xf0,0xe9,0x54,0xd7,0x2b,0xd4,0x54,0x4d,0xbd,0xed,0x6f,
0xf7,0x74,0x7f,0xfb,0x98,0x79,0xbb,0x89,0x46,0xda,0x25,0x82,0x20,0x25,0x48,0x0f,
0xea,0x05,0x3f,0x05,0x97,0xfe,0x9a,0x04,0x11,0x87,0x04,0x41,0xfd,0x20,0xee,0x9f,
0x83,0x8a,0x4b,0x8b,0xf3,0x2a,0xab,0x26,0xe6,0x15,0x74,0xc9,0x17,0x7d,0xa3,0x20,
0xea,0xed,0x44,0xd7,0x38,0x48,0x04,0x31,0xf7,0x94,0x35,0xad,0x7c,0x72,0x85,0xe0,
0x1d,0xdd,0xba,0xe8,0x56,0x86,0xb3,0x13,0x3c,0x21,0x3e,0xdc,0xa7,0x8e,0xde,0xa7,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0xcb,0x39,0xc3,0x45,0x74,0x67,0xdd,0x3a,0x87,0xef,0xb3,0x86,0xcb,0x79,
0xd3,0x77,0xe1,0x72,0x9e,0xdf,0x34,0xc2,0x45,0xed,0xcf,0x85,0x7a,0x7c,0x30,0x34,
0xa3,0x3b,0xcd,0xcc,0xff,0x88,0x3f,0xf1,0x75,0x11,0xf9,0x4f,0xf7,0xf6,0xe8,0xe6,
0x56,0x57,0xce,0x78,0x3a,0xdc,0xe4,0x77,0x57,0xa1,0xb3,0x4b,0xf0,0x9b,0x4b,0x7c,
0xd5,0x37,0xf3,0xd7,0x00,0x7c,0x3f,0x39,0x36,0x06,0x6b,0x48,0x8e,0x4d,0x4c,0x8e,
0x8d,0xf9,0xdf,0x50,0x33,0xfc,0x64,0x18,0x3f,0x57,0xe0,0xa7,0x9a,0xf8,0x99,0x60,
0xf2,0xff,0x8c,0xbf,0x9c,0x6d,0x26,0x7b,0x9a,0x99,0x3d,0xcd,0xd9,0xb3,0x90,0x3d,
0x2d,0xc1,0x5a,0x18,0x3f,0x57,0x81,0xb7,0xf2,0xbc,0x12,0x1e,0x6b,0xc3,0xbb,0xb2,
0x15,0xfa,0xd6,0xc4,0x68,0x43,0x0c,0xe1,0xfc,0x37,0xf5,0xf8,0x07,0x54,0x91,0x0f,
0x91,0x7c,0x13,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform itexture3D src;
// layout(location = 0)out vec4 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;
//
// float sRGBToLinear(float sRGB)
// {
//
// if(sRGB <= 0.04045)
// {
// return sRGB / 12.92;
// }
// else
// {
// return pow((sRGB + 0.055f)/ 1.055f, 2.4f);
// }
// }
//
// 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, 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;
// }
//
// vec4 destValue = vec4(srcValue);
//
// destValue /= 255.0;
//
// if(params . destIsSRGB)
// {
//
// destValue . r = sRGBToLinear(destValue . r);
// destValue . g = sRGBToLinear(destValue . g);
// destValue . b = sRGBToLinear(destValue . b);
// }
//
// 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;
// }