| // 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.0000001B.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kImageCopy_frag_0000001B[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xfd,0x4f,0x95,0x65, |
| 0x18,0xc7,0x9f,0x73,0x9e,0xf3,0x82,0x10,0x2f,0x02,0x4a,0x54,0x58,0x26,0x6c,0x36, |
| 0x0c,0x4e,0x45,0x46,0x90,0x6e,0x98,0x1d,0x5d,0x59,0x88,0xa6,0x54,0xb0,0x65,0xc9, |
| 0x42,0x0b,0xb4,0x38,0xb5,0x74,0xb9,0x06,0x26,0xd4,0x96,0x56,0xb0,0x35,0x66,0xad, |
| 0x60,0x2b,0xf8,0x21,0x61,0xfa,0x43,0x5b,0x3f,0xb5,0xd6,0xca,0x5e,0xb4,0x97,0xbf, |
| 0xa6,0xf5,0xb2,0xb5,0x75,0x5d,0xf7,0xf3,0xb9,0xdc,0xd5,0x59,0xcd,0xb3,0xdd,0x7b, |
| 0xce,0xfd,0xbd,0xde,0xbe,0xdf,0xeb,0xbe,0x9e,0xfb,0x9c,0x38,0xbd,0x29,0x1f,0x45, |
| 0xa9,0xa8,0x32,0xaa,0x88,0x7e,0x8d,0x92,0xcf,0xda,0x28,0x2d,0x48,0xf2,0xbc,0x5b, |
| 0x9e,0x55,0x51,0x2e,0xec,0x77,0xed,0xd9,0xbf,0xa7,0xa3,0xf4,0xf2,0x48,0x47,0xd7, |
| 0xbd,0x05,0xf5,0xab,0x89,0xe2,0xe0,0xaf,0xb6,0xda,0x28,0x1f,0x65,0xe4,0xa9,0x6b, |
| 0xfc,0x99,0xa3,0xc7,0x14,0xaf,0x96,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 0x3e,0xe7,0x1c,0x9f,0x77,0xc1,0x8d,0xcf,0x7b,0x60,0xc6,0x67,0xce,0xf1,0x51,0xdb, |
| 0xac,0xac,0x79,0x72,0xcf,0x72,0xae,0x9a,0xe7,0x7d,0xb8,0xc4,0xdc,0xc3,0xca,0xf1, |
| 0x4b,0x87,0xdb,0x1d,0x37,0x47,0xec,0xbc,0xbb,0x27,0x3e,0x80,0xd7,0x79,0x77,0x4f, |
| 0x7c,0x08,0xfe,0x3d,0x73,0xf3,0x11,0xd8,0x80,0xe3,0xfa,0x31,0x78,0x11,0xae,0x8b, |
| 0x8e,0xab,0xda,0x16,0x64,0x2d,0x52,0x6f,0xc1,0xf1,0xfa,0x0a,0x7d,0x93,0xee,0xf7, |
| 0xc1,0xfc,0x16,0x39,0x6b,0xf5,0xbb,0x82,0xcf,0x3c,0x31,0x0b,0x8e,0xcf,0x27,0xf0, |
| 0x69,0x71,0x7c,0x3e,0x05,0x37,0x3e,0xcb,0x8e,0x8f,0xda,0x96,0x64,0x2d,0x53,0x67, |
| 0xc9,0xf1,0xf9,0x1a,0x3e,0x57,0x38,0x43,0xe5,0x63,0x7e,0xcb,0x8e,0xcf,0x55,0x7c, |
| 0x16,0x89,0x59,0x72,0x7c,0x3e,0x83,0xcf,0x94,0xe3,0x73,0x01,0xdc,0xf8,0xac,0x3a, |
| 0x3e,0x6a,0x5b,0x09,0xef,0x7e,0x52,0x67,0xc5,0xf1,0xf9,0x86,0xff,0x95,0x57,0xdd, |
| 0x3c,0x99,0xdf,0xaa,0xe3,0xf3,0x0b,0x3e,0xcb,0xc4,0xac,0x94,0x9d,0xf1,0x9c,0xf3, |
| 0xfd,0x99,0x79,0x98,0x25,0x6e,0xb5,0x6c,0x4e,0x67,0x9c,0xef,0x4f,0xcc,0xf7,0x34, |
| 0x71,0x9a,0x67,0xbb,0x30,0xb9,0x84,0xed,0x6f,0x39,0xb5,0x6e,0x59,0xff,0x00,0x81, |
| 0xf4,0x0b,0x56,0x30,0x0e,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform isampler2D src; |
| // layout(location = 0)out uvec4 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; |
| // } |
| // |
| // ivec4 srcValue = texture( |
| // src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip); |
| // |
| // if(params . premultiplyAlpha) |
| // { |
| // srcValue . rgb *= srcValue . a; |
| // } |
| // else if(params . unmultiplyAlpha && srcValue . a > 0) |
| // { |
| // srcValue . rgb /= srcValue . a; |
| // } |
| // |
| // uvec4 dstValue = uvec4(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; |
| // } |