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.00000006.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000006[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x7d,0x56,0xcb,0x6f,0x54,0x75,
0x14,0xbe,0xe7,0xce,0x74,0x66,0x60,0x84,0x8e,0xb6,0xb6,0x50,0x0d,0x69,0x29,0x44,
0x11,0xad,0x34,0x50,0xab,0xd6,0xb6,0xba,0x30,0x92,0x50,0x83,0xda,0x10,0xd2,0x98,
0x28,0x43,0x2a,0x50,0x1e,0x35,0xda,0x2a,0x2e,0x8c,0x31,0xc6,0xc4,0xb5,0x8b,0xee,
0xf8,0x0f,0xa4,0x28,0xba,0x40,0xd4,0x20,0x8f,0x85,0x0b,0x01,0x25,0x9a,0xaa,0x8d,
0xa6,0x6a,0x63,0x57,0x6a,0x63,0xc4,0x20,0x5a,0xc4,0xf3,0xdd,0xf3,0x1d,0xe6,0x80,
0x8f,0x49,0x7e,0xb9,0xf7,0x7c,0xe7,0xf5,0x9d,0xc7,0xef,0x66,0x72,0x69,0x7b,0x31,
0x49,0x24,0x29,0x27,0xa5,0xe4,0x05,0x49,0xb2,0xdf,0xf5,0x49,0x9a,0xe0,0xb5,0x9c,
0x14,0xb2,0xe7,0x43,0x03,0x83,0x03,0x1d,0x63,0xe3,0xc3,0x1d,0x1b,0xba,0xd6,0x41,
0xbf,0x34,0xc9,0x65,0x76,0xd0,0xd5,0x27,0xc5,0x24,0xaf,0x4f,0x9c,0x7d,0xd5,0x91,
0x51,0xe0,0x6f,0xea,0x39,0xa5,0xa7,0xa2,0x76,0xc0,0x8b,0x88,0xa1,0xef,0xcd,0xfa,
0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,0x01,0x67,0x80,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 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;
//
// 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(ivec4 srcValue)
// {
//
// if (params.premultiplyAlpha)
// {
// srcValue.rgb *= srcValue.a;
// }
// else if (params.unmultiplyAlpha && srcValue.a > 0)
// {
// srcValue.rgb /= srcValue.a;
// }
//
// 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));
//
// ivec4 srcValue = texelFetch(src, params.srcOffset + srcSubImageCoords, params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }