blob: e4055d68d986753a78bb881043cdf14b8a491101 [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.00000028.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000028[] = {
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,0x62,0x38,0x04,0x2b,0xe1,0x12,0x0d,
0x86,0xa8,0xe1,0x66,0x81,0x80,0x72,0x28,0x67,0x02,0x0a,0x22,0x72,0x88,0x0a,0x08,
0x11,0x49,0x3c,0x10,0x84,0x70,0x23,0x28,0x82,0x88,0xca,0xa1,0x02,0x2a,0xa8,0x04,
0x14,0x54,0x0e,0x05,0x15,0x14,0x82,0x17,0x88,0x0a,0xa8,0x20,0xa0,0x3f,0xf8,0x1f,
0x58,0x1e,0x55,0x1e,0xd3,0x93,0x4f,0x6f,0xb5,0xaf,0x50,0x53,0x35,0xf5,0xb6,0xbf,
0xdd,0xf3,0x9d,0x6f,0x77,0xcf,0x9b,0xd9,0x4d,0x34,0xd2,0x32,0x11,0x04,0x69,0x41,
0x66,0x50,0x2b,0xf8,0x31,0xa8,0xf9,0x6b,0x10,0x44,0x1c,0x12,0x04,0xb5,0x83,0xb8,
0x7f,0xf6,0x1b,0x58,0x3a,0xb0,0xa0,0xbc,0x62,0x62,0x41,0x51,0x87,0x42,0xf1,0xd7,
0x0b,0xa2,0x3e,0x4e,0x7c,0xf5,0x83,0x44,0x10,0x73,0x4f,0x19,0xd3,0xc6,0x4f,0x2e,
0x13,0xbc,0x8d,0x1b,0x17,0xdc,0xc8,0x72,0x71,0x82,0x27,0x84,0xc3,0x7d,0x6a,0x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9,0x16,0x6c,0x97,0xd1,0xf2,0x1d,
0xb8,0x6a,0x39,0x6b,0xb4,0x88,0xef,0x8c,0x1b,0x67,0xe1,0x3e,0x63,0xb4,0x9c,0x33,
0x7d,0x17,0x2d,0xe7,0xf8,0x4d,0x23,0x5a,0x34,0xfe,0x6c,0xa8,0xc7,0x87,0x42,0x7b,
0x74,0x8f,0xd9,0xf3,0x3f,0xc0,0x27,0x5c,0x17,0xb0,0xff,0x70,0xb7,0x47,0x67,0x37,
0x3a,0xf2,0x8e,0x67,0xa2,0x4d,0x7e,0x77,0x75,0x72,0x71,0x09,0x7e,0x73,0x09,0x57,
0x6d,0xb3,0xff,0xea,0x80,0xef,0x27,0xc7,0xfa,0x60,0x75,0xc9,0xb1,0x81,0xc9,0xb1,
0x3e,0xff,0x3b,0xca,0x81,0x27,0xcb,0xf0,0x5c,0x02,0xcf,0x52,0xd6,0xcf,0x06,0x93,
0xff,0x77,0xfc,0xe9,0x62,0xb3,0x99,0x93,0x63,0xe6,0x34,0x62,0xce,0x3c,0xe6,0x34,
0x01,0x6b,0x6c,0x78,0x2e,0x03,0x6f,0xea,0x75,0x25,0x3c,0xd6,0x9c,0xbb,0xb2,0x29,
0xfe,0x66,0xac,0xd1,0x9c,0x35,0x44,0xf3,0x5f,0xd4,0xe3,0x6f,0xfa,0xe5,0x82,0x75,
0x9c,0x13,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 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;
// }
//
// 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;
// }
//
// 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;
// }