blob: 2923ead4fbcfc45102a91c8b40c0c093a6a1ab0f [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.00000009.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000009[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xcb,0x4f,0x5d,0x55,
0x14,0xc6,0xf7,0xbe,0x0f,0x2e,0x14,0x2e,0xdc,0x2a,0x6d,0x29,0x92,0x72,0x4b,0xb1,
0x01,0x6a,0x49,0x4d,0xaa,0xd2,0x20,0x6d,0x15,0x2b,0x98,0xd4,0xf8,0x0a,0x63,0x63,
0xe2,0xc4,0x01,0x9d,0xe8,0xa0,0x03,0x63,0x8c,0x6d,0x0c,0x61,0xd4,0x7f,0xa1,0x0f,
0xab,0x89,0x58,0x35,0xb5,0x8f,0xa1,0xf5,0x51,0x35,0x54,0x89,0x06,0x2b,0x91,0x91,
0x4a,0x8c,0x6d,0x44,0x25,0x4a,0xb1,0x5a,0xa2,0x6b,0x9d,0xfd,0x5b,0x65,0x85,0x68,
0x7a,0x93,0x95,0x73,0xf6,0xb7,0x5e,0xdf,0x7a,0x9c,0x9d,0x9b,0xcf,0x6d,0x29,0x85,
0x10,0xc3,0x9a,0x50,0x1b,0x1e,0x89,0x21,0xfb,0xad,0x0d,0xb9,0xa0,0xaf,0xf5,0xa1,
0x26,0x7b,0x0e,0xed,0x7f,0x6a,0x7f,0xef,0xf3,0x2f,0x3c,0xdb,0xbb,0xf3,0x9e,0x1d,
0xaa,0x6f,0x0c,0xf9,0xcc,0x4e,0x75,0x4d,0xa1,0x14,0x0a,0xf2,0x54,0x19,0x7d,0xe6,
0xb9,0x03,0x8a,0x9f,0x10,0x39,0x2f,0x52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xe1,0xe3,0x70,0x6d,0x73,0x5c,0x55,
0xd7,0x2a,0xd2,0x46,0x3e,0x7d,0x37,0x5e,0xbb,0xf0,0xc9,0xbb,0x7b,0xdb,0xec,0xda,
0x98,0xb5,0xda,0x3d,0x04,0x77,0xe5,0xba,0x8b,0x78,0xc6,0x67,0x13,0x7c,0x8e,0x38,
0x3e,0xed,0x31,0xe1,0xc6,0xa7,0xc3,0xf1,0x51,0x5d,0x55,0xa4,0x83,0x3c,0x55,0xc7,
0xa7,0x1f,0x1f,0xcd,0x97,0x83,0x8f,0xd9,0x75,0x38,0x3e,0xfb,0x62,0xb2,0x51,0x8e,
0xfd,0xc4,0x33,0x3e,0x9d,0xf0,0x19,0x71,0x7c,0xee,0x8c,0x09,0x37,0x3e,0x5d,0x8e,
0x8f,0xea,0xb6,0x8a,0x74,0x91,0x67,0xab,0xe3,0x33,0x10,0xd3,0xff,0x89,0x7d,0x71,
0x65,0x9f,0xcc,0xae,0xcb,0xf1,0x19,0x8e,0xc9,0x46,0x39,0x0e,0x10,0xcf,0xcf,0xb8,
0xdb,0xd9,0x0e,0xc5,0xb4,0x0f,0xba,0x33,0xc3,0xe4,0xf5,0x7b,0xda,0xe3,0x6c,0x1f,
0x8e,0x69,0xbf,0x75,0xdf,0xd5,0x4f,0xe3,0xec,0x16,0x26,0xe7,0xd1,0x2d,0xcb,0xd4,
0xfa,0x44,0xfe,0x05,0x6a,0xc8,0xc1,0x4d,0xcc,0x0d,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 utexture2D 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(uvec4 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));
//
// uvec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip);
//
// dst = transformSrcValue(srcValue);
// }