Source code

Revision control

Copy as Markdown

Other Tools

// 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.00000018.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000018[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x7b,0x68,0xd6,0x65,
0x14,0xfe,0x9d,0xf7,0xdb,0x4d,0x37,0xa7,0x6b,0x6b,0xba,0x35,0xf3,0x96,0x16,0x4c,
0x4c,0x6d,0x5e,0x50,0xe7,0x25,0xc9,0x29,0x99,0xcb,0x24,0x25,0xa8,0xd4,0x08,0xa1,
0x60,0x5e,0xb2,0xc8,0x4a,0x64,0x9a,0x8a,0x94,0x48,0x8a,0x0a,0x45,0x18,0x45,0xa9,
0x50,0x8c,0x24,0xc9,0x0b,0xfd,0x21,0x4a,0x6b,0xea,0xc8,0xfe,0xc9,0xa4,0x40,0x6c,
0x89,0x78,0x49,0xb2,0x6c,0x3a,0xa7,0x61,0xef,0xf3,0x3b,0xcf,0xe1,0x3b,0x0e,0xa9,
0xc1,0xeb,0xef,0xf7,0x3e,0xe7,0x9c,0xe7,0x9c,0xf3,0xbc,0xef,0xf9,0xbe,0xcf,0x4c,
0x18,0x94,0x9f,0x24,0x92,0x14,0x26,0x05,0x49,0x55,0x48,0xd2,0xbf,0x92,0x24,0x44,
0x24,0x89,0x58,0x5e,0xfa,0xac,0x9b,0x39,0x67,0xe6,0xb0,0xe5,0xaf,0xbe,0x38,0xac,
0x66,0xd4,0x70,0xd8,0x8b,0x93,0x4c,0xea,0x07,0x5b,0xcf,0x24,0x3f,0xc9,0x89,0x4f,
0xac,0x86,0x85,0x2f,0x2d,0x06,0xfe,0x6b,0x5c,0x37,0xe3,0xea,0x15,0xfd,0x80,0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af,0xdf,0xa5,0xa6,0x4c,0x50,0x5c,
0xdc,0xdd,0xb0,0x3c,0xdb,0x5d,0x4d,0x15,0x41,0xeb,0x42,0x9d,0x88,0x41,0x0d,0x13,
0x23,0xd3,0x4d,0xda,0xfe,0x89,0xd1,0x63,0xe3,0xfa,0x17,0x08,0xaf,0x8a,0xbc,0xc8,
0x13,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 utexture2DArray src;
// layout(location = 0) out vec4 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;
//
// float sRGBToLinear(float sRGB)
// {
//
// if (sRGB <= 0.04045)
// {
// return sRGB / 12.92;
// }
// else
// {
// return pow( (sRGB + 0.055f) / 1.055f, 2.4f);
// }
// }
//
// 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;
// }
//
// vec4 transformSrcValue(uvec4 srcValue)
// {
//
// if (params.premultiplyAlpha)
// {
// srcValue.rgb *= srcValue.a;
// }
// else if (params.unmultiplyAlpha && srcValue.a > 0)
// {
// srcValue.rgb /= srcValue.a;
// }
//
// vec4 dstValue = vec4(srcValue);
//
// dstValue /= 255.0;
//
// if (params.dstIsSRGB)
// {
//
// dstValue.r = sRGBToLinear(dstValue.r);
// dstValue.g = sRGBToLinear(dstValue.g);
// dstValue.b = sRGBToLinear(dstValue.b);
// }
//
// 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));
//
// uvec4 srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }