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.00000020.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000020[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x59,0x6c,0x55,0x55,
0x14,0x7d,0x7b,0x3f,0xa0,0x65,0x90,0xb6,0xca,0x60,0x09,0x20,0x50,0x4d,0x54,0x1a,
0xc6,0x56,0xd1,0xd2,0x5a,0x28,0x50,0x6d,0x40,0x1c,0x51,0x43,0x0c,0x01,0x04,0x81,
0x20,0x44,0x91,0x19,0x4a,0x41,0x41,0x34,0xb6,0x4c,0x31,0x41,0x13,0x0d,0x2a,0x89,
0xc6,0x01,0x62,0xd4,0x28,0xa2,0x12,0xa2,0x04,0xf8,0xd1,0x68,0x24,0x8a,0x7c,0xa1,
0x04,0x71,0x80,0x1f,0x02,0x82,0x0a,0xf5,0xac,0xee,0xb5,0x7d,0x9b,0x17,0x8d,0x2f,
0x39,0xbd,0xf7,0xac,0x3d,0xaf,0x73,0xf6,0xb9,0xf7,0x36,0xab,0x65,0x05,0x99,0x8c,
0x64,0x3a,0x67,0x0a,0x33,0x5b,0x34,0xd3,0xf6,0x2b,0xc9,0x68,0x42,0x32,0x09,0xeb,
0xd0,0x76,0xad,0x1f,0x7f,0xf7,0xf8,0x41,0x0b,0x1e,0x7f,0x68,0x50,0x45,0xe5,0x10,
0xc8,0xbb,0x66,0xb2,0x6d,0x7a,0x90,0x15,0x65,0x0a,0x32,0xed,0xd2,0x15,0xe3,0x91,
0xa9,0xb3,0xe7,0xb9,0xa0,0x57,0x1a,0xc5,0x49,0x0f,0x78,0x01,0x7c,0xa4,0xfb,0xba,
0x74,0x45,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b,0xf9,0xcc,0x53,0xfb,0xbf,0xd4,0x06,0x3e,0x37,0x91,0x8f,0xeb,0xed,0x0f,0xf9,
0x6c,0x56,0xd3,0x41,0x8e,0xb0,0xd9,0xc7,0xe7,0xf0,0x01,0xea,0xee,0x0c,0xcf,0x8c,
0x77,0xc4,0xb8,0xcc,0x86,0xe7,0xdc,0xa3,0x9a,0xc3,0xfd,0x7b,0xd8,0x6d,0x0f,0x84,
0x38,0x9b,0xd4,0x62,0x21,0x36,0x6c,0x76,0x32,0xce,0x41,0xea,0x6e,0x0f,0x71,0x5e,
0x0f,0xfe,0x3c,0xce,0x02,0xbd,0x14,0x77,0xdd,0x37,0xfe,0x25,0xa7,0x85,0x6a,0xf8,
0x82,0xb0,0x37,0x3c,0xce,0xc1,0x90,0xd3,0x46,0xb5,0xbc,0x90,0x27,0x6c,0x90,0x43,
0x4d,0xf2,0x84,0xff,0x95,0x41,0x76,0x21,0x59,0x8f,0x48,0xe3,0x6f,0x08,0xa0,0x9a,
0x07,0xac,0x17,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 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 linearToSRGB(float linear)
// {
//
// if (linear <= 0.0031308)
// {
// return linear * 12.92;
// }
// else
// {
// return pow(linear, (1.0f / 2.4f)) * 1.055f - 0.055f;
// }
// }
//
// 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(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;
// }
//
// vec4 dstValue = vec4(srcValue);
//
// 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));
//
// vec4 srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }