| // 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.00000024.inc: |
| // Pre-generated shader for the ANGLE Vulkan back-end. |
| |
| #pragma once |
| constexpr uint8_t kImageCopy_frag_00000024[] = { |
| 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x6d,0x4c,0x96,0x55, |
| 0x18,0xc7,0xef,0xf3,0x3c,0xf0,0x80,0xf8,0x12,0xe5,0x4b,0xa2,0xac,0x41,0xa8,0x69, |
| 0x12,0x9a,0x19,0x9a,0xf8,0x08,0xa6,0x09,0x53,0x12,0x5f,0x56,0x9b,0x19,0x39,0xcc, |
| 0x4a,0x4d,0xb1,0xa0,0xb5,0x74,0x69,0x28,0x99,0xb2,0x96,0xce,0x0f,0x7d,0xd0,0x4a, |
| 0xb7,0xbe,0xf8,0xa1,0xe9,0xac,0xf4,0x43,0x6a,0xc9,0x9a,0xd3,0x56,0xd2,0x56,0xb2, |
| 0x95,0x34,0xfd,0xd8,0xa7,0x96,0xcb,0x65,0x52,0x2d,0xeb,0x5c,0xe7,0xfc,0x2e,0xb8, |
| 0x62,0xbd,0xb0,0x9d,0xdd,0xf7,0xf9,0x9f,0xeb,0x7f,0xbd,0xfc,0xcf,0x75,0xce,0x0d, |
| 0xa4,0x53,0x65,0x79,0x49,0xe2,0x92,0x82,0x24,0x3f,0x59,0xe2,0x92,0xf0,0x73,0x6b, |
| 0x92,0x4a,0xe4,0x75,0x70,0x92,0x09,0xcf,0xda,0xfa,0xe5,0xf5,0x15,0xad,0x2f,0xac, |
| 0xa9,0x98,0x7e,0xff,0x54,0x59,0x1f,0x96,0xa4,0x83,0x9d,0xac,0xdd,0x92,0xe4,0x25, |
| 0x39,0xfe,0x29,0x63,0x63,0xd3,0xba,0x66,0xc1,0x27,0xf8,0x71,0xc5,0x8f,0x42,0x6f, |
| 0x27,0x78,0x9e,0xf8,0xf0,0x6f,0x13,0x82,0x4f,0xe1,0x24,0x49,0x5d,0x92,0x9b,0x94, |
| 0xc7,0x70,0x49,0x19,0x4f,0xc5,0x1c,0x58,0xbe,0xc1,0x52,0x60,0x85,0x06,0x4b,0x83, |
| 0x8d,0x30,0x58,0x0e,0xd8,0x68,0x83,0xe5,0x82,0x15,0x1b,0x2c,0x03,0x56,0x62,0xb0, |
| 0x3c,0xb0,0x71,0x06,0xcb,0x07,0x9b,0x68,0xb0,0x41,0x60,0xe5,0x06,0x2b,0x00,0x9b, |
| 0x6a,0xb0,0xc1,0x60,0xd3,0x0d,0x36,0x04,0x6c,0xa6,0xc1,0x86,0x82,0xcd,0x0e,0x3a, |
| 0xa5,0xfb,0xea,0x15,0xcd,0x56,0xfa,0xe7,0x9d,0xe8,0xa3,0xf3,0x52,0x33,0x17,0x9d, |
| 0xef,0x60,0x3e,0xdc,0xb3,0x52,0x61,0x3d,0x1d,0xb4,0x91,0xf7,0x51,0xfe,0x2d,0x43, |
| 0x9d,0x93,0xbd,0x7d,0x86,0x78,0xdf,0x1f,0x1d,0x9f,0x1d,0xe1,0x2d,0x86,0x19,0x5c, |
| 0x34,0x3b,0x5a,0xdb,0x94,0xd5,0xb9,0xe8,0x75,0x60,0x7f,0x51,0xcd,0x48,0x3f,0x2f, |
| 0xc1,0x87,0xec,0xcd,0xed,0x7e,0x5e,0xca,0x3c,0xc5,0x7c,0x1c,0x9a,0xe6,0x04,0x3c, |
| 0x27,0x19,0x8f,0xad,0xe0,0x55,0xcc,0x27,0x18,0xfe,0x5d,0xd8,0x0b,0x5f,0xfc,0x4f, |
| 0xc6,0x5f,0x12,0xea,0x29,0x0c,0x1a,0x94,0x32,0x4a,0xfa,0xf2,0xff,0xef,0x51,0xd2, |
| 0xf7,0xcc,0x49,0xee,0x61,0x9f,0xca,0x89,0x2f,0xf3,0x0a,0xb0,0xc9,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07,0x5b,0x6f,0xe2,0x7d,0x01,0xde,0x48,0xbc,0x2e, |
| 0x13,0x4f,0xd6,0x2e,0xf8,0xd1,0x45,0xbc,0x0b,0xe6,0xcc,0x4e,0x77,0xf1,0xef,0x82, |
| 0x85,0xe6,0x77,0x36,0xb5,0xeb,0x32,0x5a,0x2f,0x72,0xd1,0xe6,0x2c,0x9c,0x0b,0x26, |
| 0x9f,0xaf,0xc8,0xa7,0xd2,0xe4,0xf3,0x35,0xb8,0xe6,0xd3,0x6d,0xf2,0x91,0xb5,0x8b, |
| 0x7e,0x74,0x13,0xe7,0xa2,0xc9,0xa7,0x92,0x7c,0x16,0x99,0xbd,0x57,0xbb,0x6e,0x93, |
| 0x4f,0xbd,0x8b,0x36,0x5d,0x70,0x2e,0x9a,0x7c,0xbe,0x21,0x9f,0x63,0x26,0x9f,0x6f, |
| 0xc1,0x35,0x9f,0x1e,0x93,0x8f,0xac,0x5d,0xf2,0xa3,0x87,0x38,0x97,0x4c,0x3e,0x33, |
| 0x5d,0xfc,0x3b,0x49,0xe2,0xe9,0x37,0x4a,0xed,0x7a,0x4c,0x3e,0x0d,0x2e,0xda,0x74, |
| 0xc3,0xb9,0x84,0x6d,0x27,0xb6,0x67,0xcc,0x59,0xff,0x14,0xbd,0xd3,0x26,0xce,0x34, |
| 0xd7,0x8f,0x27,0x03,0xb8,0x9d,0x26,0xce,0x62,0x17,0x63,0xf5,0xc0,0x39,0x83,0xed, |
| 0x09,0x6c,0x8f,0xf3,0xad,0x15,0xdb,0x8f,0xf0,0x27,0x43,0xff,0x17,0x94,0x32,0xdf, |
| 0x5a,0xe5,0x9c,0x30,0xfe,0x1f,0x76,0x31,0x46,0x27,0x7c,0xf1,0x37,0xc7,0x33,0xae, |
| 0xb0,0xf6,0x87,0xef,0x92,0x99,0x7e,0xfc,0x05,0x45,0xf1,0x98,0x88,0xbc,0x12,0x00, |
| 0x00 |
| }; |
| |
| // Generated from: |
| // |
| // #version 450 core |
| // |
| // #extension GL_EXT_samplerless_texture_functions : require |
| // |
| // layout(set = 0, binding = 0)uniform itexture3D src; |
| // layout(location = 0)out vec4 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; |
| // |
| // float sRGBToLinear(float sRGB) |
| // { |
| // |
| // if(sRGB <= 0.04045) |
| // { |
| // return sRGB / 12.92; |
| // } |
| // else |
| // { |
| // return pow((sRGB + 0.055f)/ 1.055f, 2.4f); |
| // } |
| // } |
| // |
| // 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 = 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; |
| // } |
| // |
| // vec4 dstValue = vec4(srcValue); |
| // |
| // dstValue /= 255.0; |
| // |
| // if(params . dstIsSRGB) |
| // { |
| // |
| // dstValue . r = sRGBToLinear(dstValue . r); |
| // dstValue . g = sRGBToLinear(dstValue . g); |
| // dstValue . b = sRGBToLinear(dstValue . b); |
| // } |
| // |
| // 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; |
| // } |