| // 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.00000019.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kImageCopy_frag_00000019[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xd9,0x4f,0x5d,0x55, |
| 0x14,0xc6,0xcf,0x9d,0x29,0xc8,0x50,0xa0,0x45,0x1a,0xa9,0x76,0x20,0xd1,0x50,0xe1, |
| 0x26,0x62,0x45,0xb0,0x4d,0xb0,0x62,0xb5,0xa2,0x2d,0x74,0x50,0xe1,0xc1,0xa1,0x44, |
| 0x5a,0x85,0xaa,0xa0,0xb1,0x8d,0x8d,0x81,0x5a,0x78,0xb0,0x55,0x21,0x0d,0xa9,0x46, |
| 0x21,0x51,0x78,0x50,0xb0,0x7d,0x30,0xf1,0xc9,0x18,0xa3,0x6d,0x6c,0xeb,0xf0,0xe7, |
| 0x18,0x87,0xc4,0xc4,0xbd,0xf6,0xfd,0xad,0xe6,0xcb,0x8d,0xa6,0x24,0x3b,0xe7,0xec, |
| 0x6f,0x4d,0xdf,0xb7,0xf6,0x3a,0xfb,0x92,0x49,0x6f,0x2b,0x24,0x49,0x2a,0xa9,0x4c, |
| 0x2a,0x92,0xdf,0x92,0xd2,0xdf,0xfa,0x24,0x1d,0x90,0x24,0xa9,0x4a,0xf2,0xf1,0xb9, |
| 0xb7,0xff,0x60,0x7f,0xfb,0xe4,0x1b,0x23,0xed,0x9d,0xf7,0x17,0xcd,0x5e,0x93,0x64, |
| 0xa2,0x9f,0xd9,0x6a,0x93,0x42,0x92,0x0d,0x4f,0x5b,0xe3,0x2f,0x1c,0x3f,0x61,0x78, |
| 0x75,0x58,0x97,0xc3,0xaa,0x0b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7b,0xe0,0x02,0x5c,0x32,0xdc,0xc1,0xc6,0xf1,0x5b,0xc1,0xfd,0x7e,0x9b,0x27, |
| 0x76,0x41,0xee,0x85,0x8f,0xe0,0x75,0x51,0xee,0x85,0x8f,0xc1,0xaf,0x91,0xff,0x13, |
| 0xb0,0x41,0xe1,0xfa,0x29,0x78,0x1f,0x5c,0x97,0x84,0xab,0xd9,0x16,0xc3,0x5a,0xa2, |
| 0xde,0xa2,0xf0,0xfa,0x8e,0x98,0x29,0xf9,0x6d,0x70,0xbf,0x25,0xce,0xda,0xfc,0xae, |
| 0xe3,0xb3,0x40,0xcc,0xa2,0xf0,0xf9,0x0c,0x3e,0x2d,0xc2,0xe7,0x73,0x70,0xe7,0xb3, |
| 0x22,0x7c,0xcc,0xb6,0x1c,0xd6,0x0a,0x75,0x96,0x85,0xcf,0xf7,0xc4,0x5c,0xe7,0x0c, |
| 0x8d,0x8f,0xfb,0xad,0x08,0x9f,0x1b,0xf8,0x2c,0x11,0xb3,0x2c,0x7c,0xbe,0x80,0xcf, |
| 0xb4,0xf0,0xf9,0x12,0xdc,0xf9,0xac,0x09,0x1f,0xb3,0xad,0x46,0xdf,0x52,0x9d,0x55, |
| 0xe1,0xf3,0x03,0xff,0xb3,0xdc,0x90,0x79,0x72,0xbf,0x35,0xe1,0xf3,0x2b,0x3e,0x2b, |
| 0xc4,0xac,0x96,0x9d,0xf1,0xbc,0xf8,0xfe,0xc2,0x3c,0xcc,0x11,0xb7,0x56,0x36,0xa7, |
| 0xb3,0xe2,0xfb,0x33,0xf3,0x3d,0x43,0x9c,0xe5,0xd9,0x1d,0x98,0x5c,0xc6,0xf6,0x4f, |
| 0x38,0xb5,0xae,0xb0,0xfe,0x05,0x43,0xa1,0xf9,0xc7,0x28,0x0e,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform utexture2DArray src; |
| // layout(location = 0)out ivec4 dst; |
| // |
| // layout(push_constant)uniform PushConstants { |
| // |
| // ivec2 srcOffset; |
| // ivec2 dstOffset; |
| // int srcMip; |
| // int srcLayer; |
| // |
| // bool flipX; |
| // bool flipY; |
| // |
| // bool premultiplyAlpha; |
| // bool unmultiplyAlpha; |
| // |
| // bool dstHasLuminance; |
| // bool dstIsAlpha; |
| // |
| // bool srcIsSRGB; |
| // bool dstIsSRGB; |
| // |
| // int dstDefaultChannelsMask; |
| // bool rotateXY; |
| // } params; |
| // |
| // void main() |
| // { |
| // ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; |
| // |
| // ivec2 srcSubImageCoords = dstSubImageCoords; |
| // |
| // if(params . flipX) |
| // { |
| // srcSubImageCoords . x = - srcSubImageCoords . x; |
| // } |
| // if(params . flipY) |
| // { |
| // srcSubImageCoords . y = - srcSubImageCoords . y; |
| // } |
| // if(params . rotateXY) |
| // { |
| // srcSubImageCoords . xy = srcSubImageCoords . yx; |
| // } |
| // |
| // uvec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); |
| // |
| // 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; |
| // } |
| // } |
| // |
| // dst = dstValue; |
| // } |