| // 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,0xcb,0x4f,0x5d,0x55, |
| 0x14,0xc6,0xf7,0xbe,0x17,0xb8,0x97,0x4b,0x2f,0xa5,0xd2,0x96,0xb6,0x54,0xa1,0x82, |
| 0x56,0x42,0x29,0x90,0xb4,0xe6,0x26,0x6a,0x83,0x6d,0x2d,0x3e,0xa8,0x54,0x0d,0x63, |
| 0x63,0xe2,0xc4,0x01,0x9d,0xe8,0xa0,0x03,0x63,0x8c,0x6d,0x0c,0x61,0xd4,0x7f,0xa1, |
| 0x0f,0xab,0x89,0x58,0x35,0xd6,0x47,0x6b,0x1f,0xc3,0xd6,0x47,0xa3,0x41,0x25,0x1a, |
| 0x54,0x22,0x23,0x95,0x18,0xdb,0x08,0x82,0x95,0x12,0xd7,0x3a,0xfb,0xb7,0x64,0x05, |
| 0x8d,0x92,0xec,0x9c,0xb3,0xbf,0xf5,0xfa,0xbe,0xb5,0xf6,0xd9,0x97,0x7c,0xae,0xad, |
| 0x10,0x42,0x0c,0xa5,0x50,0x0c,0x07,0x62,0xc8,0xfe,0xd6,0x84,0x5c,0xd0,0xd7,0xba, |
| 0x50,0x93,0x3d,0xfb,0x07,0x9e,0x18,0xd8,0xfe,0xec,0x73,0x4f,0x6f,0xdf,0xb1,0xb3, |
| 0x47,0xed,0xf5,0x21,0x9f,0xf9,0xa9,0x6d,0x75,0x28,0x84,0x2a,0x79,0xea,0x1a,0x7e, |
| 0xea,0x99,0x83,0x8a,0x9f,0x94,0x75,0x49,0x56,0x83,0xf8,0x29,0x2e,0x05,0xc2,0x83, |
| 0xa1,0x3a,0x34,0xa5,0xf4,0xa1,0x8d,0xa7,0x61,0x11,0xac,0xe8,0xb0,0x1c,0x58,0x83, |
| 0xc3,0xf2,0x60,0x6b,0x1d,0x56,0x05,0xb6,0xc1,0x61,0xd5,0x60,0x9b,0x1d,0x56,0x03, |
| 0xd6,0xea,0xb0,0x02,0x58,0xbb,0xc3,0x8a,0x60,0x77,0x39,0xac,0x16,0x6c,0x9b,0xc3, |
| 0x4a,0x60,0x3d,0x0e,0xab,0x03,0xdb,0xe1,0xb0,0x55,0x60,0x15,0x87,0x95,0xc1,0xee, |
| 0x75,0x58,0x3d,0x58,0x9f,0xf6,0x5b,0x94,0x5a,0x0f,0xfa,0x45,0xe1,0x49,0x72,0xaf, |
| 0x66,0x7f,0x5a,0x9e,0xb7,0xd3,0x43,0xdb,0x6f,0x71,0x7b,0xed,0xfd,0x6d,0xec,0x1b, |
| 0x25,0x4b,0x2e,0xb3,0xe7,0xb3,0xfe,0xe9,0xfb,0x3a,0xf1,0xa9,0xa1,0x17,0xda,0xfb, |
| 0x26,0xd9,0x17,0xe8,0x91,0xd9,0xcb,0xd8,0x03,0xf6,0x7a,0x78,0x57,0xb1,0x6f,0xc0, |
| 0xbf,0x2a,0xab,0xb5,0xe6,0xef,0x7e,0x5a,0x1e,0x5b,0xe5,0xff,0x59,0xe6,0xd3,0x2a, |
| 0x99,0x36,0xd0,0x6b,0xcd,0x75,0x0f,0xfb,0x8d,0x60,0x9d,0x70,0xde,0x04,0x67,0xf5, |
| 0x6f,0xc6,0x56,0x70,0xf6,0x16,0xe6,0xaf,0xf6,0x56,0xec,0xe5,0xec,0xcc,0xe4,0xb2, |
| 0xfe,0x76,0xa2,0xad,0x1d,0x6d,0x16,0xd7,0x05,0x17,0xdb,0x57,0x98,0x89,0xed,0xf7, |
| 0x50,0x47,0xb5,0xef,0x27,0x67,0xde,0xd9,0x87,0x38,0x3b,0xb6,0x1f,0x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|
| 0x97,0xfa,0x3d,0x10,0x93,0x4f,0x35,0x31,0x57,0x9d,0x86,0x2f,0xd0,0xd0,0xe5,0x34, |
| 0x7c,0x09,0x6e,0x1a,0xbe,0x02,0x33,0x0d,0x93,0x4e,0x83,0xda,0x26,0x64,0x4d,0x52, |
| 0x77,0xc2,0x69,0xf8,0x9a,0xda,0xd1,0x69,0xf8,0x06,0xdc,0x34,0x54,0x62,0xc2,0xcc, |
| 0x4f,0x35,0x58,0xae,0x49,0xa7,0x61,0x5f,0x4c,0x3e,0xe3,0xc4,0x4c,0x38,0x0d,0xdf, |
| 0xa2,0xa1,0xe2,0x34,0x7c,0x07,0x6e,0x1a,0xbe,0x07,0x33,0x0d,0xd3,0x4e,0x83,0xda, |
| 0xa6,0x64,0x4d,0x53,0x77,0x8a,0x73,0xa4,0x75,0x7f,0xa0,0xf6,0xbe,0xb8,0x7c,0xde, |
| 0x95,0xa3,0xf9,0x4e,0x3b,0x8e,0xfd,0xf8,0x4d,0x12,0x37,0x05,0x1f,0xfd,0x26,0xde, |
| 0xe4,0x7b,0xb0,0x33,0xf7,0x16,0x9c,0x47,0xdd,0x99,0x7b,0x1b,0xfc,0x45,0xce,0xdc, |
| 0x3b,0x60,0x9a,0x57,0xe3,0xf4,0x4e,0x78,0x97,0xb8,0x33,0xc4,0x69,0x4f,0xdf,0x03, |
| 0xb7,0xbe,0x7f,0x40,0x6c,0x70,0xd8,0x59,0x30,0xd5,0x70,0x40,0x10,0xfd,0xfe,0xce, |
| 0xe1,0x7b,0x96,0x1c,0x56,0xe3,0x43,0x6a,0x8c,0xb8,0x1a,0xe7,0xc1,0x9f,0x14,0x66, |
| 0x7a,0x07,0x5e,0x40,0xd3,0x39,0xee,0x89,0xf3,0x6e,0x1e,0x3f,0x12,0xbf,0xc7,0xcd, |
| 0xe3,0x27,0x70,0x9b,0xc7,0xcf,0x60,0x36,0x8f,0x62,0x5c,0x9e,0x87,0xda,0x66,0x64, |
| 0xcd,0xd2,0xe3,0x19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af,0xf3,0xdd,0x1f,0xd3,0xf9,0xd6,0xf3,0xae, |
| 0x71,0x9a,0x67,0x97,0x30,0xb9,0x84,0xed,0xa6,0x4c,0xad,0x22,0xeb,0x2f,0x48,0x90, |
| 0x02,0x30,0x50,0x0e,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 utexture2DArray 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, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); |
| // |
| // dst = transformSrcValue(srcValue); |
| // } |