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.00000002.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000002[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x75,0x57,0x7d,0x68,0x56,0x75,
0x14,0xbe,0xe7,0xbe,0xfb,0x72,0x9b,0x5f,0xa8,0x33,0x65,0x13,0x9b,0x91,0x8a,0xa1,
0x96,0xd3,0x4c,0x9d,0x26,0x52,0x9a,0xcc,0xcd,0xac,0x45,0x44,0x5a,0x9a,0x09,0x45,
0xb3,0xc4,0x2c,0x4a,0x4c,0x4d,0xd4,0x54,0x10,0xa2,0x28,0xca,0xa4,0x3f,0x24,0x49,
0x4c,0xfd,0x4b,0x12,0xad,0x74,0x94,0xec,0x8f,0x50,0x10,0x8a,0xfe,0x90,0xa5,0x89,
0xac,0x65,0xda,0x9a,0xa6,0xce,0xef,0xce,0xf3,0x9e,0xe7,0xf0,0x1e,0x5f,0xf4,0x85,
0xe3,0xbd,0xe7,0x39,0xdf,0xcf,0xfd,0x9d,0xbb,0x6b,0x26,0x1d,0x52,0x9c,0x24,0x92,
0x94,0x25,0x25,0x49,0x79,0x9a,0x64,0x7f,0xbd,0x93,0x54,0x91,0x44,0xb1,0xa2,0xec,
0x75,0x7a,0xdd,0x53,0x75,0x23,0x97,0xbe,0xb9,0x70,0x64,0xcd,0xd8,0xd1,0xb0,0xf7,
0x48,0x32,0x59,0x3f,0xd8,0x7a,0x26,0xc5,0x49,0x81,0x5e,0x21,0x4d,0xf3,0x5f,0x59,
0x0c,0xfc,0x77,0x95,0xf3,0x2a,0xbd,0xd4,0x0f,0x78,0x31,0x72,0xe8,0xfd,0x83,0x7a,
0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1c,0xce,0x47,0xa9,0x58,0x4d,0xfc,0xde,
0xe3,0x99,0x29,0x13,0xc3,0xe7,0x28,0x8b,0xe8,0xe9,0x67,0x31,0xcc,0xfd,0xae,0x68,
0x0e,0xcf,0x85,0xeb,0x45,0xe5,0x02,0x7e,0x37,0xe8,0x53,0xc8,0x98,0x92,0x30,0x43,
0x0f,0xce,0x70,0x31,0xcc,0xd0,0x53,0x0c,0xf7,0x19,0x7a,0x89,0x61,0x3e,0x43,0x45,
0x98,0x01,0xb6,0xde,0x2a,0x15,0xac,0xdb,0x3b,0xcc,0xd0,0x47,0xac,0xb6,0x84,0x19,
0xfa,0x8a,0xe1,0x3e,0xc3,0x51,0x31,0xcc,0xfd,0x30,0x83,0xe7,0xaa,0x08,0x33,0xdc,
0xa4,0x0f,0xe6,0x3a,0xca,0x9a,0x3e,0x43,0x7f,0xce,0x70,0x29,0xcc,0x70,0x8f,0x18,
0xee,0x33,0x0c,0x10,0xc3,0x7c,0x86,0xaa,0x30,0x03,0x6c,0x03,0x55,0xaa,0x58,0x17,
0xf7,0x0d,0xac,0x5b,0x29,0x56,0xfb,0xa6,0xe4,0xf6,0x0b,0x3d,0xba,0x6f,0x55,0xe8,
0xf1,0x16,0xfd,0xd0,0x77,0x25,0x73,0xa2,0x1f,0xec,0xe0,0x5f,0xdc,0x3f,0x3f,0x73,
0x67,0xf8,0x4e,0x6b,0x09,0x67,0xee,0x6f,0xe2,0xab,0x78,0xe6,0xce,0x11,0xbb,0xc5,
0x59,0xf1,0x9e,0xf9,0x87,0x71,0x87,0x19,0x07,0x4e,0x3b,0x88,0xbf,0xa0,0x7d,0x60,
0x17,0xfe,0x65,0xbd,0x73,0x7c,0x67,0x74,0x24,0x39,0xae,0xee,0x27,0x57,0x97,0x03,
0x57,0x43,0xc5,0x70,0xe7,0x6a,0x98,0x18,0xe6,0x5c,0x8d,0x0b,0x5c,0xc1,0x36,0x5c,
0x65,0x1c,0xe7,0x1f,0xce,0xe7,0x9d,0xdd,0x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x9f,0x95,0xec,0xe7,0x48,0xe8,0x67,0x95,
0x18,0xee,0xfd,0xac,0x09,0xfd,0xc0,0xb6,0x5a,0x65,0x0d,0xeb,0xac,0x0e,0xfd,0x9c,
0x61,0x3f,0xa8,0xe7,0xe7,0xc3,0xfd,0xd6,0x84,0x7e,0x4a,0x52,0xf3,0x41,0x8f,0x67,
0x98,0xcf,0xfb,0x59,0xcb,0x7e,0xd6,0x85,0x7e,0xd6,0x89,0xe1,0xde,0xcf,0x86,0xd0,
0x0f,0x6c,0xeb,0x55,0x36,0xb0,0xce,0xfa,0xd0,0xcf,0x59,0xb1,0xff,0xa3,0x96,0x70,
0xcf,0xd0,0x8f,0xfb,0x6d,0x08,0xfd,0x94,0xa5,0xe6,0x83,0x1e,0xcf,0x32,0x1f,0x7c,
0x37,0xd2,0x77,0x09,0xf7,0x0d,0x67,0x65,0xa9,0x18,0x97,0x99,0x24,0x57,0xa7,0x43,
0x72,0xb8,0x7f,0xdb,0x7a,0xec,0xc6,0x50,0xa7,0x34,0xb5,0x5a,0xa8,0xdd,0xc1,0x73,
0x04,0xdf,0x4d,0xf4,0x5d,0x14,0xea,0xbc,0x1a,0xf2,0x79,0x9d,0x4e,0xb9,0x1d,0x77,
0xdf,0xd7,0xee,0xd0,0xd3,0x05,0x31,0xbc,0x33,0x9c,0x0d,0xaf,0xb3,0x29,0xf4,0xd4,
0x2d,0xb5,0xbe,0xd0,0xe7,0x05,0xee,0xcd,0x64,0xcd,0x74,0x9e,0xb6,0x1b,0x1a,0x3d,
0x5e,0xe5,0x7f,0x5c,0x9f,0xe0,0x99,0xf8,0x12,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 texture2D src;
// layout(location = 0) out uvec4 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 linearToSRGB(float linear)
// {
//
// if (linear <= 0.0031308)
// {
// return linear * 12.92;
// }
// else
// {
// return pow(linear, (1.0f / 2.4f)) * 1.055f - 0.055f;
// }
// }
//
// 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;
// }
//
// uvec4 transformSrcValue(vec4 srcValue)
// {
//
// if (params.srcIsSRGB)
// {
//
// srcValue.r = linearToSRGB(srcValue.r);
// srcValue.g = linearToSRGB(srcValue.g);
// srcValue.b = linearToSRGB(srcValue.b);
// }
//
// if (params.premultiplyAlpha)
// {
// srcValue.rgb *= srcValue.a;
// }
// else if (params.unmultiplyAlpha && srcValue.a > 0)
// {
// srcValue.rgb /= srcValue.a;
// }
//
// srcValue *= 255.0;
//
// 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;
// }
// }
//
// return dstValue;
// }
// #line 56 "shaders/src/ImageCopy.frag"
//
// void main()
// {
// ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord.xy));
//
// vec4 srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }