blob: d35dd4fd6266058919bd9e07aec6db4cb7058fa6 [file] [log] [blame]
// 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.00000024.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000024[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x57,0x7b,0x68,0x97,0x65,
0x14,0xfe,0xce,0x6f,0x57,0x75,0x9b,0xca,0x9c,0xb6,0x29,0x51,0x79,0x41,0xdc,0x98,
0x53,0xe7,0x65,0xd9,0xbc,0x92,0x5a,0x8d,0x4c,0x83,0xc0,0x52,0x62,0xa6,0x52,0xd6,
0x54,0x96,0x13,0x29,0x99,0xb3,0xb2,0x52,0xa3,0xd2,0xbf,0x4c,0x51,0x34,0xa5,0xc0,
0xbc,0x91,0x39,0x23,0xf4,0x8f,0x50,0x8c,0x40,0x4c,0xa4,0x39,0x95,0xbc,0x24,0x9b,
0xb7,0xbc,0xfc,0x15,0xdd,0x88,0x3a,0xcf,0xef,0x3c,0xa7,0x9d,0x46,0xe1,0xe0,0xf5,
0xfb,0xde,0xe7,0x9c,0xf3,0x9c,0x73,0x9e,0xf7,0x7d,0xbf,0xf7,0x67,0x46,0xaa,0x7f,
0x4e,0x92,0x48,0xd2,0x35,0xc9,0x4d,0x6e,0x4a,0x92,0xfe,0xeb,0x99,0xa4,0x12,0xbc,
0x76,0x4b,0xb2,0xd3,0xcf,0xa9,0x35,0x4f,0xd7,0x94,0xbf,0xba,0x74,0x5e,0x79,0xe5,
0xc8,0x0a,0xd8,0x0b,0x92,0x8c,0xb4,0x1f,0x6c,0xdd,0x93,0x9c,0x24,0x53,0x9f,0x18,
0x75,0xb5,0x2f,0x2d,0x02,0x7e,0x46,0xc7,0x5d,0x1d,0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
0xd2,0x16,0x7e,0xb3,0xb9,0x5f,0x7d,0xd0,0xba,0x5d,0xcc,0x07,0xb5,0x9e,0x24,0x9f,
0xd7,0xb3,0x94,0xf5,0x1c,0x0b,0xf5,0x34,0x88,0xe1,0x5e,0xcf,0xf2,0x50,0x0f,0x6c,
0xcb,0x74,0x2c,0x67,0x9e,0x65,0xa1,0x9e,0x53,0xac,0xa7,0x3d,0xac,0xbd,0xfb,0x2d,
0x0f,0xf5,0x5c,0x15,0xf3,0x41,0x8d,0xa7,0xc8,0xe7,0xf5,0xbc,0xc6,0x7a,0xea,0x42,
0x3d,0xaf,0x8b,0xe1,0x5e,0x4f,0x63,0xa8,0x07,0xb6,0x15,0x3a,0x1a,0x99,0x67,0x45,
0xa8,0xe7,0xb4,0xd8,0xff,0xcd,0x90,0xcf,0xef,0x28,0xf7,0x6b,0x0c,0xf5,0xdc,0x10,
0xf3,0x41,0x8d,0xa7,0xc9,0x07,0xdf,0x95,0xf4,0x5d,0x10,0xee,0x8c,0x17,0xa9,0x25,
0xf8,0x3c,0xcf,0x09,0xe9,0xc0,0xfd,0x77,0xa9,0xc7,0xae,0x0c,0x79,0xae,0x8b,0xe5,
0x42,0xee,0x13,0xdc,0x47,0xf0,0x6d,0xa2,0xef,0x1c,0xde,0xb5,0xf0,0xad,0x25,0x5f,
0x1b,0xef,0xda,0x1c,0xde,0xdb,0xde,0x87,0xc7,0x34,0x05,0xfe,0x6b,0x62,0x39,0x90,
0xb3,0x96,0x67,0x60,0x9c,0x46,0xdc,0xa5,0xed,0x4f,0xdd,0x25,0x63,0x74,0xfc,0x0d,
0x60,0xc8,0x9f,0x0f,0xe4,0x12,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 itexture3D 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(ivec4 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));
//
// ivec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip);
//
// dst = transformSrcValue(srcValue);
// }