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.00000028.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000028[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x7b,0x68,0xd6,0x65,
0x14,0xfe,0x9d,0xf7,0x73,0x17,0xdd,0xbc,0xac,0xad,0xe9,0xd6,0xbc,0xa7,0x05,0x13,
0x53,0x9b,0x17,0xd4,0x39,0x4d,0x72,0x4a,0xe6,0x32,0x49,0x09,0x2a,0x35,0x42,0x28,
0x98,0x97,0x2c,0xb2,0x12,0x99,0xa6,0x22,0x25,0x92,0xa2,0x42,0x11,0x46,0x51,0x2a,
0x14,0x23,0x49,0xf2,0x42,0x7f,0x88,0xd2,0x9a,0x3a,0xb2,0x7f,0x32,0x29,0x10,0x33,
0x11,0x2f,0x49,0x2b,0x9b,0xce,0x69,0xd8,0xfb,0xfc,0xce,0x73,0xfa,0x8e,0x43,0xea,
0x83,0xd7,0xdf,0xef,0x7d,0xce,0x39,0xcf,0x39,0xe7,0x79,0xdf,0xf3,0xed,0x33,0x13,
0x06,0xe7,0x25,0x89,0x24,0x05,0x49,0x7e,0x52,0x11,0x92,0xf4,0x53,0x94,0x84,0x88,
0x24,0x11,0xcb,0x4d,0x9f,0xb5,0x33,0xe7,0xcc,0x1c,0xbe,0xfc,0x95,0x17,0x86,0x57,
0x8d,0x1e,0x01,0x7b,0x8f,0x24,0x93,0xfa,0xc1,0xd6,0x33,0xc9,0x4b,0xba,0xc4,0x27,
0x56,0xfd,0xc2,0x17,0x17,0x03,0xff,0x25,0xae,0x9b,0x71,0xf5,0x8a,0x7e,0xc0,0xf3,
0xc0,0x11,0xdf,0x47,0xc6,0x27,0x52,0x4c,0x4f,0x72,0xd2,0x77,0x7c,0x06,0xf3,0x69,
0x98,0x10,0xcb,0x77,0x58,0x20,0xd6,0xcb,0x61,0x19,0x62,0x25,0x0e,0xeb,0x42,0xac,
0xc2,0x61,0x39,0xc4,0x06,0x38,0x2c,0x97,0xd8,0xfd,0x0e,0xcb,0x23,0xf6,0xa0,0xc3,
0xf2,0x89,0x0d,0x73,0x58,0x57,0x62,0x23,0x1c,0xd6,0x8d,0xd8,0x38,0x87,0x15,0x10,
0x9b,0xe8,0xb0,0x42,0x62,0x93,0x53,0x3d,0xba,0xa4,0x3a,0x15,0xa4,0x1a,0xea,0xfe,
0x52,0x7c,0x0e,0xa4,0x1e,0xb6,0x1f,0xe4,0xf6,0xd0,0xb4,0x1f,0xf7,0xc5,0x51,0x95,
0x90,0xfa,0x67,0x52,0x2d,0xf0,0x5e,0x1a,0xdf,0x72,0xd9,0xeb,0xbd,0xd1,0xbf,0x90,
0xef,0xd0,0xb4,0x77,0xdc,0x77,0x67,0x0d,0x81,0xf6,0x62,0xda,0x13,0xda,0x4b,0x52,
0x5e,0xd5,0x11,0xfb,0x52,0x6a,0x85,0x7d,0x65,0xfc,0x37,0x97,0xda,0x9e,0x6f,0x1c,
0x52,0x5d,0x12,0x59,0xfa,0x3a,0xfc,0x81,0xb8,0x1a,0x6b,0x17,0x56,0xdb,0xbe,0x32,
0xae,0xf7,0xdf,0x2b,0x9b,0xdc,0x2f,0x76,0x87,0xde,0xbb,0x73,0x15,0x72,0x15,0xff,
0xc7,0x32,0xfb,0x80,0xc8,0x35,0x8a,0x9a,0x83,0x63,0x02,0xf7,0x0f,0x13,0xab,0x64,
0x8f,0x55,0xec,0x11,0xfe,0xa3,0x69,0xeb,0xce,0xfd,0x78,0xee,0x8b,0xe9,0x8f,0x67,
0xb5,0xeb,0x79,0x11,0x6d,0x19,0xc7,0xb7,0x9c,0x67,0x0f,0x7b,0x23,0x35,0x08,0xe4,
0x3b,0x4c,0x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ed,0xae,0xa6,0xb2,0xa0,0x75,0xa1,0x4e,0xc4,0xa0,
0x86,0x49,0x91,0xe9,0x26,0x6d,0x7f,0xc7,0xe8,0x71,0x71,0xfd,0x03,0xe6,0x2e,0xb4,
0x7a,0xc8,0x13,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 utexture3D 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 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(uvec4 srcValue)
// {
//
// if (params.premultiplyAlpha)
// {
// srcValue.rgb *= srcValue.a;
// }
// else if (params.unmultiplyAlpha && srcValue.a > 0)
// {
// srcValue.rgb /= srcValue.a;
// }
//
// vec4 dstValue = vec4(srcValue);
//
// dstValue /= 255.0;
//
// 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));
//
// uvec4 srcValue = texelFetch(src, ivec3(params.srcOffset + srcSubImageCoords, params.srcLayer), params.srcMip);
//
// dst = transformSrcValue(srcValue);
// }