| // 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.00000027.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kImageCopy_frag_00000027[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xfb,0x4f,0xd7,0x65, |
| 0x14,0xc7,0x9f,0xef,0x1d,0x21,0x2e,0x02,0x4a,0x54,0x98,0x17,0xd8,0x6c,0x18,0x7c, |
| 0x57,0x64,0x04,0xe9,0x86,0x19,0xba,0xb2,0x10,0x4d,0xa9,0xe0,0x87,0x5c,0x38,0xa1, |
| 0xe2,0xdb,0x85,0xef,0x5a,0xba,0x6c,0x41,0x0a,0x6d,0x69,0x05,0x6b,0xcc,0x5a,0xc2, |
| 0x56,0xf0,0x43,0xc2,0xf4,0x87,0xb6,0x7e,0x6a,0xad,0x95,0xcd,0xb4,0xcb,0x7f,0xd3, |
| 0xba,0x6c,0x6d,0x9d,0xf3,0x7c,0x5f,0xc7,0x9d,0xbe,0xab,0xc9,0xf6,0xec,0xc3,0xf3, |
| 0x3e,0xb7,0xf7,0xfb,0x9c,0xe7,0x79,0x20,0x95,0xdc,0x96,0x0b,0x21,0x11,0x2a,0x43, |
| 0x45,0xf8,0x35,0x94,0x7e,0xd6,0x87,0xa4,0x20,0xa5,0xef,0x7d,0xf2,0xad,0x0a,0xd9, |
| 0xb8,0xdf,0x77,0xe0,0xf0,0x81,0x8e,0xc9,0xe2,0x68,0x47,0xd7,0x03,0x79,0xf5,0xab, |
| 0x09,0xa9,0xe8,0xaf,0xb6,0xda,0x90,0x0b,0x69,0xf9,0xea,0x9a,0x38,0x36,0x5e,0x50, |
| 0xbc,0x5a,0xd6,0x15,0x59,0x75,0xe2,0x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c,0x3b,0x3e,0x6a,0x9b,0x93,0xb5,0x40,0xee,0x39,0xf7,0x2e,0x7f,0x04,0x97, |
| 0x14,0xef,0xb0,0x72,0xfc,0xda,0xe1,0xf6,0xc6,0xcd,0x13,0xbb,0xe0,0xde,0x89,0x8f, |
| 0xe1,0x75,0xc1,0xbd,0x13,0x9f,0x80,0x5f,0x23,0xff,0xa7,0x60,0x83,0x8e,0xeb,0x45, |
| 0xf0,0x7e,0xb8,0x2e,0x39,0xae,0x6a,0x5b,0x94,0xb5,0x44,0xbd,0x45,0xc7,0xeb,0x1b, |
| 0x62,0xa6,0xdc,0xdf,0x07,0xf3,0x5b,0x62,0xd6,0xea,0x77,0x1d,0x9f,0x05,0x62,0x16, |
| 0x1d,0x9f,0xcf,0xe0,0xd3,0xe2,0xf8,0x7c,0x0e,0x6e,0x7c,0x56,0x1c,0x1f,0xb5,0x2d, |
| 0xcb,0x5a,0xa1,0xce,0xb2,0xe3,0xf3,0x2d,0x31,0xd7,0x99,0xa1,0xf2,0x31,0xbf,0x15, |
| 0xc7,0xe7,0x06,0x3e,0x4b,0xc4,0x2c,0x3b,0x3e,0x5f,0xc0,0x67,0xda,0xf1,0xb9,0x04, |
| 0x6e,0x7c,0xd6,0x1c,0x9f,0x4b,0xd1,0x2f,0x44,0x4c,0xeb,0xac,0x3a,0x3e,0xdf,0xf1, |
| 0x7f,0xcb,0x0d,0x77,0x9e,0xcc,0x6f,0xcd,0xf1,0xf9,0x05,0x9f,0x15,0x62,0x56,0xcb, |
| 0x66,0x3c,0xef,0x7c,0x7f,0xe6,0x3c,0xcc,0x11,0xb7,0x56,0x76,0x4e,0x67,0x9d,0xef, |
| 0x4f,0x9c,0xef,0x19,0xe2,0x34,0xcf,0x6e,0x61,0x72,0x05,0xdb,0xdf,0x32,0xb5,0x6e, |
| 0x59,0xff,0x00,0xf8,0x5e,0x0d,0x78,0x20,0x0e,0x00,0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform usampler2D 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 = 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; |
| // } |
| // |
| // 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; |
| // } |