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.00000021.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000021[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x57,0x6d,0x68,0x96,0x65,
0x14,0x7e,0xce,0xf3,0x6e,0x6e,0x6e,0x7b,0xdd,0x6c,0xce,0xb2,0x99,0xb9,0x19,0x11,
0x6a,0x63,0xd5,0x0c,0x69,0x6e,0x36,0x8c,0x94,0xfc,0x58,0x6e,0x8d,0xc8,0x08,0x51,
0x0b,0x33,0xc9,0x48,0x4d,0x42,0x43,0x65,0xe5,0x92,0x92,0xe9,0xaf,0x28,0x92,0x66,
0xfe,0x92,0x46,0x52,0xea,0x8f,0x10,0x45,0x49,0xb7,0x3e,0xfc,0x13,0x48,0x42,0x68,
0x26,0xb2,0x34,0xd1,0x65,0xb3,0x6d,0x7e,0x6b,0xf7,0xf5,0x9c,0xeb,0xf0,0x9e,0x5e,
0xac,0x17,0x6e,0x9f,0xe7,0x5c,0xe7,0xfb,0xba,0xef,0xf3,0xec,0x36,0x15,0x8f,0xcb,
0x8b,0x22,0x89,0x0a,0xa3,0xfc,0x68,0x78,0x1c,0x25,0xbf,0xe1,0x51,0x1c,0x90,0x28,
0x60,0x43,0x92,0xe7,0xf4,0x59,0xcd,0xb3,0xaa,0x56,0xac,0x7c,0xb9,0xaa,0x66,0x52,
0x35,0xf4,0xc3,0xa2,0x54,0x62,0x07,0x5d,0x71,0x94,0x17,0xe5,0x84,0x27,0xd6,0xeb,
0x0b,0x96,0x2c,0x03,0x7e,0x22,0xac,0xcb,0x61,0x95,0x04,0x3b,0xe0,0x79,0x88,0x11,
0xde,0x1f,0x09,0x4f,0xa4,0x98,0x11,0xe5,0x26,0xef,0xf8,0x8d,0xe3,0xd3,0x30,0x21,
0x96,0xef,0xb0,0x98,0x58,0x89,0xc3,0x52,0xc4,0x46,0x38,0x2c,0x87,0xd8,0x68,0x87,
0xe5,0x12,0x1b,0xeb,0xb0,0x21,0xc4,0x1e,0x70,0x58,0x1e,0xb1,0x87,0x1c,0x96,0x4f,
0x6c,0xa2,0xc3,0x86,0x12,0xab,0x76,0x58,0x01,0xb1,0x1a,0x87,0x15,0x12,0x9b,0xe2,
0xb0,0x22,0x62,0x4f,0x26,0x7c,0xe4,0x24,0x3c,0x15,0x26,0x1c,0xaa,0x7c,0x26,0x3c,
0x2b,0xc8,0x87,0xc9,0x95,0x4e,0x06,0xa7,0x63,0x28,0x97,0x06,0x56,0xe2,0xc4,0x3e,
0x95,0x70,0x81,0xf7,0x91,0xe1,0x6d,0x08,0x7b,0x2d,0x0b,0xf6,0x45,0x7c,0x07,0xa7,
0x77,0x07,0x39,0xcd,0x1a,0x62,0xca,0xa5,0xe4,0x22,0x87,0x72,0x19,0xf5,0x90,0x27,
0x84,0x7f,0xa1,0x2b,0x07,0x9f,0x55,0xb3,0x6b,0x47,0x04,0xaf,0xd1,0x0e,0x47,0x9d,
0x4d,0xdf,0xcc,0x69,0x30,0xf9,0xc1,0xb0,0x5a,0x5a,0x7e,0xae,0x37,0x19,0x3c,0xd6,
0x15,0xbc,0x3f,0xd5,0xe4,0xf1,0x61,0xed,0x9c,0xbe,0xa0,0x0e,0x75,0x55,0xb3,0xae,
0x28,0xe9,0xa7,0x38,0xe1,0x26,0xcd,0x55,0xc4,0x55,0xfd,0x3f,0xcb,0xf4,0x63,0x43,
0xac,0x47,0xb9,0x27,0x88,0x51,0x4b,0xf9,0x31,0x62,0x13,0xc8,0x41,0x0d,0x39,0x80,
0xfd,0x24,0xea,0xd2,0x94,0x9f,0xa0,0x5c,0x4d,0x7b,0x3c,0xeb,0x58,0x1b,0x38,0x59,
0x43,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0x28,0xbc,0xa7,
0xc3,0x02,0x86,0x7e,0xf0,0x3e,0x37,0xf8,0x81,0xd3,0x62,0xd1,0x9c,0xf8,0xad,0xe5,
0x7e,0x96,0x88,0xe2,0x4d,0x81,0x55,0xd4,0xf4,0x93,0x28,0x66,0x76,0x57,0x43,0x0c,
0x8b,0x85,0xe7,0x40,0xe0,0x02,0x76,0x71,0xac,0x36,0xb9,0xf4,0x49,0xbb,0x1e,0x4a,
0xd9,0xc3,0x35,0xd7,0xc3,0x08,0x51,0xdc,0x7a,0x28,0x13,0xc5,0xac,0x87,0x72,0xd7,
0x03,0x74,0x23,0xc3,0x2a,0x67,0xde,0x91,0xae,0x87,0x7b,0x44,0x73,0x8b,0xeb,0x61,
0x94,0x28,0x6e,0x3d,0x1c,0x15,0xc5,0xcc,0x0e,0x3d,0x58,0xac,0x72,0xd7,0x43,0x2a,
0x56,0x1b,0xf4,0x75,0x94,0x39,0xad,0x87,0xd1,0xec,0xe1,0xba,0xeb,0xe1,0x3e,0x51,
0xdc,0x7a,0x18,0x23,0x8a,0x59,0x0f,0x95,0xae,0x07,0xe8,0xee,0x0f,0xab,0x92,0x79,
0xf1,0xde,0xc8,0xbc,0x15,0xa2,0xb9,0x53,0x71,0x66,0xfe,0x50,0xa3,0xd9,0x56,0xba,
0x1a,0x73,0x68,0x87,0xba,0x2b,0x18,0x13,0xf5,0x60,0x46,0xcf,0x72,0x3e,0xed,0xcc,
0xfd,0xc1,0x6f,0x5c,0x97,0x3b,0x73,0xe7,0x88,0xaf,0xe7,0x99,0x3b,0x4f,0x0c,0x71,
0xe1,0x87,0xef,0x50,0x2f,0xfd,0x2e,0xd0,0x0f,0x9c,0xfe,0x49,0xdc,0x78,0xff,0x8b,
0xbe,0x91,0xc3,0xfa,0x88,0xa1,0x87,0x67,0x03,0xf7,0xf8,0x1e,0x5c,0xa2,0x6d,0x1f,
0x63,0x58,0x8e,0xbf,0x99,0xe3,0x90,0xcb,0xd1,0x4f,0x7c,0x7e,0xe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b1,0x8b,0x75,0x1a,0x47,0xbf,0x88,0xea,0x8f,0xb1,0x4e,
0xe3,0x68,0x32,0x39,0x8a,0xd9,0x6f,0x77,0x16,0x47,0x7b,0x99,0x73,0xaf,0xe3,0x68,
0x9f,0xa8,0x9f,0x71,0xd4,0xe5,0x38,0x82,0x6e,0x7f,0x58,0x07,0xe9,0x77,0xd0,0x71,
0xf4,0xad,0xe3,0x68,0x72,0x16,0x47,0x87,0x44,0xf5,0x9e,0xa3,0xc3,0xa2,0xb8,0x71,
0xd4,0xcd,0x98,0xfb,0x1d,0x47,0x07,0x58,0x4b,0x45,0x96,0x4d,0x97,0xe3,0xa8,0xdb,
0x71,0xf4,0xa3,0xa8,0x0f,0x62,0x1c,0x66,0x9d,0xc6,0xd1,0x09,0x51,0x3d,0xb8,0x8a,
0x19,0xcf,0x66,0xaf,0x96,0x31,0x60,0x97,0x1f,0x2b,0x67,0xf8,0xe6,0xc1,0xa7,0xdb,
0x7d,0x83,0xa7,0x70,0xe6,0x6f,0xba,0x99,0xaf,0x13,0xc5,0x6d,0xe6,0xeb,0x45,0x31,
0x9b,0xf9,0x45,0x8e,0x3f,0xe8,0xa6,0x86,0x35,0x93,0x79,0x67,0xba,0xd8,0xb3,0x18,
0xfb,0x96,0x8b,0x3d,0x5b,0x14,0xb7,0xd8,0x73,0x44,0x31,0x8b,0xdd,0xec,0x62,0x43,
0xd7,0x18,0x56,0x33,0x63,0x37,0xba,0xef,0xc9,0x5c,0xd1,0xbe,0x70,0xa7,0xd8,0xcb,
0x58,0x4d,0xa2,0x78,0x3b,0xb9,0x30,0xbf,0x66,0x72,0x01,0x9b,0xe7,0x44,0x73,0xa2,
0xce,0x26,0xc6,0x47,0xde,0x85,0x2e,0x2f,0x6c,0x5a,0xc2,0x5a,0x48,0xff,0x16,0x97,
0xf7,0x79,0x97,0xb7,0x31,0xdc,0x82,0x70,0x47,0x7d,0x81,0x58,0x7e,0x9c,0xb9,0xb3,
0xc4,0xfc,0x5e,0x43,0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,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 texture3D src;
// layout(location = 0) out ivec4 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;
// }
//
// ivec4 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;
//
// ivec4 dstValue = ivec4(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, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }