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.00000005.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000005[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x56,0x5b,0x6f,0x55,0x65,
0x10,0xdd,0xb3,0x77,0x7b,0x4e,0x6b,0xd3,0x16,0xa4,0xe5,0x2e,0x85,0x16,0x23,0xa4,
0x5a,0x68,0xa4,0xb6,0x8d,0xe2,0x2d,0x21,0x48,0x84,0x54,0x6c,0x4c,0x1a,0x42,0xe0,
0x14,0x0a,0x42,0xb0,0x55,0xd4,0x67,0x63,0x8c,0x89,0x2f,0x3e,0xf4,0x8d,0x9f,0x00,
0x08,0xf8,0x80,0xa8,0x41,0x2e,0x8f,0x54,0x85,0x68,0xaa,0x36,0x92,0xa2,0x8d,0x7d,
0x52,0x1b,0x23,0xc6,0xc8,0xad,0x04,0xea,0xac,0x3d,0x6b,0x38,0x03,0x5e,0x4e,0xf2,
0x65,0xef,0x59,0x73,0x5b,0x73,0xf9,0x76,0x4e,0x96,0xb6,0x14,0x93,0x44,0x92,0x9a,
0xa4,0x2a,0x79,0x5d,0x92,0xfc,0x37,0x3b,0x49,0x13,0xbc,0xd6,0x24,0x85,0xfc,0xb9,
0x7e,0x63,0xef,0xc6,0xb6,0x37,0xde,0x1c,0x68,0x5b,0xd3,0xb1,0x1a,0xfa,0xba,0x24,
0xcb,0xed,0xa0,0xab,0x4f,0x8a,0x49,0x85,0x3e,0x71,0x06,0xfb,0xf7,0x0e,0x01,0xff,
0x40,0xcf,0x59,0x3d,0xb3,0xd4,0x0e,0x78,0x11,0x31,0xf4,0x7d,0xae,0x3e,0x53,0x3d,
0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ec,0xa6,0x50,0xc3,
0xb2,0x7f,0xe1,0xd5,0x27,0x65,0xdc,0xbf,0xaf,0x5d,0xf4,0x6d,0x09,0xdf,0xbe,0xe5,
0xe4,0xb5,0x5b,0xca,0xdf,0xbe,0x07,0xc5,0xf0,0x11,0xc6,0x7f,0x48,0x0c,0x1b,0x0e,
0xf7,0x6f,0x85,0x18,0x5e,0x22,0xd7,0xd6,0xc0,0x15,0xba,0x95,0x7a,0x5a,0x99,0x0f,
0xef,0xce,0x6b,0x0b,0x7d,0xf6,0x85,0x7e,0xb9,0x5d,0x6b,0xd8,0x87,0x41,0x72,0x07,
0xd7,0x2d,0x8c,0xe7,0x7c,0x1e,0x21,0x9f,0x03,0x81,0x4f,0x9b,0x18,0xee,0x7c,0xda,
0x03,0x1f,0xe8,0x56,0xe9,0x69,0x67,0x9e,0x55,0x81,0xcf,0x56,0xfa,0x0c,0x86,0x5d,
0x76,0xbb,0xf6,0xc0,0x67,0x48,0xcc,0x06,0x1c,0xb7,0x32,0x9e,0xf3,0x79,0x94,0x7c,
0xfa,0x02,0x9f,0x35,0x62,0xb8,0xf3,0xe9,0x0c,0x7c,0xa0,0xeb,0xd0,0xd3,0xc9,0x3c,
0x1d,0x81,0xcf,0x36,0xb1,0xff,0x4c,0x43,0x9c,0x27,0xf8,0xb8,0x5d,0x67,0xe0,0xb3,
0x5f,0xcc,0x06,0x1c,0xb7,0x31,0x5e,0x9c,0x71,0x57,0xb0,0x7d,0x4d,0x6c,0x1f,0xb0,
0x33,0xfb,0x99,0x37,0xee,0x69,0x77,0xb0,0x7d,0x55,0x6c,0xa7,0x71,0x47,0xe0,0x87,
0x38,0x4f,0x2a,0x93,0xb3,0xd4,0xdd,0xd2,0xa9,0x75,0xe9,0xf9,0x1b,0x4a,0x3c,0xa6,
0x61,0x50,0x0e,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 itexture2D 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;
//
// 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(ivec4 srcValue)
// {
//
// if (params.premultiplyAlpha)
// {
// srcValue.rgb *= srcValue.a;
// }
// else if (params.unmultiplyAlpha && srcValue.a > 0)
// {
// srcValue.rgb /= srcValue.a;
// }
//
// 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));
//
// ivec4 srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }