| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_vk_internal_shaders.py. |
| // |
| // Copyright 2020 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,0x8b,0x53,0x95,0x55, |
| 0x14,0xc5,0x3f,0xee,0x05,0x2e,0x0f,0x79,0x88,0x28,0xf9,0xc0,0x12,0xb5,0x87,0x18, |
| 0x62,0x81,0x91,0x40,0x49,0x46,0x22,0x61,0x54,0x42,0x0f,0xd3,0x84,0x12,0xcb,0x44, |
| 0x4c,0x85,0x28,0x52,0x51,0x53,0x4b,0xca,0x47,0x2f,0xb1,0x12,0xad,0x44,0xad,0xa9, |
| 0xff,0xa3,0xbf,0xa8,0xe9,0x31,0xd3,0x4c,0x67,0x9f,0xfb,0xdb,0xcc,0xea,0x8e,0x15, |
| 0x33,0x67,0xbe,0xbb,0xd7,0xde,0x67,0x9d,0xb5,0xf7,0x3e,0xdf,0xfe,0x48,0xa7,0x56, |
| 0x66,0x92,0x24,0x2f,0x29,0x49,0x8a,0x92,0x1f,0x93,0xec,0xdf,0xfc,0x24,0x15,0x90, |
| 0x24,0x29,0x4d,0x0a,0xe3,0x73,0x4b,0xcf,0xf6,0x9e,0x86,0x23,0xa3,0x7b,0x1a,0x9a, |
| 0x9a,0x1b,0xcd,0x5f,0x9e,0xa4,0x63,0x9c,0xf9,0x2a,0x92,0x4c,0x92,0x1f,0x9e,0xb6, |
| 0x0e,0x0c,0xee,0x1b,0x31,0xbc,0x2c,0xac,0xdb,0x61,0x55,0x86,0x38,0xc3,0x33,0xc6, |
| 0x11,0x7e,0x95,0x45,0x4e,0xdb,0x93,0x24,0x5d,0x49,0x41,0xb2,0x80,0xf3,0x56,0xf2, |
| 0x74,0x2c,0x0f,0xac,0x48,0xb0,0x14,0x58,0xa5,0x60,0x69,0xb0,0x6a,0xc1,0xf2,0xc1, |
| 0xee,0x12,0xac,0x00,0x6c,0x99,0x60,0x85,0x60,0xf7,0x08,0x96,0x01,0x5b,0x25,0x58, |
| 0x11,0xd8,0xfd,0x82,0x15,0x83,0xad,0x15,0xac,0x04,0xac,0x51,0xb0,0x52,0xb0,0x26, |
| 0xc1,0xe6,0x81,0xb5,0x08,0x56,0x06,0xd6,0x16,0xeb,0x94,0x9e,0xcb,0xd7,0x6a,0xb6, |
| 0x39,0x3c,0xeb,0xa8,0x8f,0xdb,0x2b,0xc4,0xb6,0x3a,0x2f,0xc7,0x5e,0x10,0x76,0xa5, |
| 0xa2,0x3f,0x1d,0x6b,0x63,0xbf,0x17,0x86,0x98,0x42,0xf2,0xb4,0xba,0xd6,0x04,0x3b, |
| 0x43,0xfe,0xa9,0x88,0xe7,0xc7,0x1c,0x33,0xac,0x45,0x61,0x67,0x09,0xf1,0x16,0x5b, |
| 0x4a,0x6e,0xf9,0xc4,0xce,0x83,0xc7,0xf0,0x56,0xec,0x32,0xe1,0x2e,0x27,0xde,0xcf, |
| 0xae,0x82,0x2b,0x89,0x3a,0x2b,0xe7,0xea,0xec,0x1a,0x6c,0x55,0xfd,0xcf,0xf2,0x18, |
| 0x3b,0xbf,0x9a,0xfa,0x2f,0xe0,0xfc,0xea,0x78,0x4e,0x16,0xab,0x27,0xd7,0x45,0xe8, |
| 0xb1,0xf8,0x1a,0x7c,0x19,0xf1,0xd7,0x4a,0x3e,0xcb,0xf1,0x57,0xc5,0x7b,0x94,0x8a, |
| 0xb5,0xad,0x47,0xb7,0xd7,0xdd,0xe2,0xee,0x15,0xcd,0xce,0x53,0xcf,0xdd,0xf2,0xf8, |
| 0xf5,0x9c,0xeb,0xfe,0x0d,0xd4,0xc6,0xea,0xf2,0x18,0x67,0xf8,0xb9,0x8f,0xc3,0x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0xdc,0x94,0xbe,0x9b,0x96,0x9b,0xfc,0xef,0x65,0x5a, |
| 0x3c,0x7e,0x36,0xa7,0xc7,0x53,0x39,0x77,0x74,0x52,0xee,0xfc,0x0f,0xf0,0x19,0xd7, |
| 0x6d,0xec,0xbf,0xc2,0x64,0x69,0x09,0xeb,0x6f,0xc9,0xd3,0xf6,0x01,0x54,0x0f,0x00, |
| 0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform utexture2D src; |
| // layout(location = 0)out ivec4 dest; |
| // |
| // layout(push_constant)uniform PushConstants { |
| // |
| // ivec2 srcOffset; |
| // ivec2 destOffset; |
| // int srcMip; |
| // int srcLayer; |
| // |
| // bool flipX; |
| // bool flipY; |
| // |
| // bool premultiplyAlpha; |
| // bool unmultiplyAlpha; |
| // |
| // bool destHasLuminance; |
| // bool destIsAlpha; |
| // |
| // bool srcIsSRGB; |
| // bool destIsSRGB; |
| // |
| // int destDefaultChannelsMask; |
| // bool rotateXY; |
| // } params; |
| // |
| // void main() |
| // { |
| // ivec2 destSubImageCoords = ivec2(gl_FragCoord . xy)- params . destOffset; |
| // |
| // ivec2 srcSubImageCoords = destSubImageCoords; |
| // |
| // 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, params . srcOffset + srcSubImageCoords, params . srcMip); |
| // |
| // if(params . premultiplyAlpha) |
| // { |
| // srcValue . rgb *= srcValue . a; |
| // } |
| // else if(params . unmultiplyAlpha && srcValue . a > 0) |
| // { |
| // srcValue . rgb /= srcValue . a; |
| // } |
| // |
| // ivec4 destValue = ivec4(srcValue); |
| // |
| // if(params . destHasLuminance) |
| // { |
| // destValue . rg = destValue . ra; |
| // } |
| // else if(params . destIsAlpha) |
| // { |
| // destValue . r = destValue . a; |
| // } |
| // else |
| // { |
| // int defaultChannelsMask = params . destDefaultChannelsMask; |
| // if((defaultChannelsMask & 2)!= 0) |
| // { |
| // destValue . g = 0; |
| // } |
| // if((defaultChannelsMask & 4)!= 0) |
| // { |
| // destValue . b = 0; |
| // } |
| // if((defaultChannelsMask & 8)!= 0) |
| // { |
| // destValue . a = 1; |
| // } |
| // } |
| // |
| // dest = destValue; |
| // } |