1// GENERATED FILE - DO NOT EDIT. 2// Generated by gen_vk_internal_shaders.py. 3// 4// Copyright 2018 The ANGLE Project Authors. All rights reserved. 5// Use of this source code is governed by a BSD-style license that can be 6// found in the LICENSE file. 7// 8// shaders/gen/ImageCopy.frag.00000025.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000025[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x0b,0x53,0x95,0x55, 14 0x14,0x86,0x3f,0xce,0x81,0x73,0x10,0xe4,0x22,0xa0,0x84,0x8a,0xe5,0x85,0x2e,0x62, 15 0x88,0x05,0x46,0x02,0x2a,0x19,0x49,0x46,0xa9,0x68,0x56,0x62,0x11,0x06,0x96,0x98, 16 0x24,0x49,0x9a,0x94,0xd7,0x14,0x2c,0xad,0xa4,0xbc,0x74,0x13,0x2b,0xd1,0x4a,0xc4, 17 0xfa,0x17,0xfd,0xa2,0xa6,0xcb,0x4c,0x33,0xed,0xf5,0x9d,0x67,0x31,0xef,0x9c,0xb1, 18 0x3a,0x33,0x7b,0xce,0xb7,0x9f,0xbd,0xf6,0xda,0xef,0x5a,0x7b,0x7d,0xeb,0x9c,0x64, 19 0x62,0x69,0x3a,0x8a,0x72,0xa2,0x82,0x28,0x3f,0xfa,0x25,0xca,0x7c,0xe6,0x44,0x89, 20 0x40,0xa2,0xa8,0x30,0x4a,0xc5,0xdf,0x1b,0x3b,0xb7,0x75,0xd6,0x1d,0x1c,0xee,0xab, 21 0x6b,0x68,0xac,0xb7,0xf5,0xe2,0x28,0x19,0xdb,0xd9,0x5a,0x49,0x94,0x8e,0x72,0xc3, 22 0xb7,0x8d,0xfd,0xbd,0x7b,0x07,0x8d,0x17,0x85,0x71,0x27,0x8c,0xd2,0x60,0x67,0x3c, 23 0x6d,0x3e,0xc2,0x53,0x51,0xec,0xd3,0xf6,0x44,0x51,0x47,0x94,0x17,0x95,0x73,0xde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02, 77 0x9f,0x47,0xd9,0x73,0x1c,0x9d,0x23,0xac,0x79,0x2d,0x9d,0xa2,0x96,0x4e,0x4a,0x2d, 78 0x7d,0x00,0xf7,0x5a,0x3a,0x0d,0xf3,0x5a,0x1a,0x95,0x3b,0xb4,0xb5,0x33,0x61,0x9c, 79 0x23,0xc6,0x33,0x12,0xe3,0x18,0xbf,0xdf,0xde,0x23,0xcf,0xc2,0xc6,0xe4,0xff,0x81, 80 0xdb,0x7e,0x38,0x63,0x9b,0xc9,0xf7,0x47,0xb0,0xb3,0x92,0xef,0x84,0xe4,0x7b,0x04, 81 0x1b,0xcb,0xef,0x28,0x67,0x9f,0x93,0xb8,0x3e,0x26,0xae,0xf3,0x12,0xd7,0x27,0x70, 82 0x8f,0xeb,0x53,0x98,0xc7,0x35,0x2e,0x71,0xd9,0xda,0x85,0x30,0x2e,0xe1,0xfb,0x82, 83 0xd4,0xe6,0x67,0x68,0xd5,0xda,0xfc,0x1c,0xee,0x36,0x17,0xb1,0xf1,0xdf,0xda,0x8b, 84 0xd8,0x98,0xde,0x71,0x7c,0x5e,0x92,0x5e,0xfa,0x05,0x7a,0xaf,0x88,0xcf,0x2f,0xe1, 85 0xb6,0xff,0x32,0x73,0x5f,0xfb,0x8a,0xff,0x42,0xbf,0x52,0x03,0x5f,0xc3,0xba,0x24, 86 0xbe,0x6f,0xe0,0xed,0xc4,0x37,0x21,0xf1,0xd9,0xda,0xd5,0x30,0x26,0xd0,0x72,0x55, 87 0xb4,0x5f,0x43,0xbb,0xff,0xce,0x5e,0x93,0x77,0xdd,0xed,0x27,0x44,0xcb,0xb7,0x59, 88 0x5a,0xbe,0x83,0x55,0x8b,0x96,0xef,0xe1,0xae,0x65,0x52,0xb4,0xd8,0xda,0xf5,0x30, 89 0x26,0xf1,0x7d,0x5d,0xb4,0xdc,0x44,0xcb,0x0d,0xb4,0xdc,0x14,0x2d,0x6e,0x3f,0x29, 90 0x5a,0x7e,0xc8,0xd2,0xf2,0x23,0xec,0xa4,0x68,0xf9,0x09,0xee,0x5a,0xa6,0x44,0x8b, 91 0xad,0xdd,0x8a,0x6d,0x33,0xbe,0x6f,0x89,0x96,0xdb,0x72,0xef,0xa6,0xe5,0x36,0xff, 92 0x1d,0x4d,0x8b,0xdb,0x4f,0x65,0xdd,0xf1,0x78,0x56,0x8d,0x8e,0x4a,0xcd,0xff,0x8c, 93 0x3f,0xf3,0x75,0x87,0xf9,0xdf,0xe1,0x6d,0x6f,0x0a,0xe3,0x1f,0x7e,0x58,0x71,0xc1, 94 0xf4,0x0f,0x00,0x00 95}; 96 97// Generated from: 98// 99// #version 450 core 100// 101// #extension GL_EXT_samplerless_texture_functions : require 102// 103// layout(set = 0, binding = 0)uniform itexture3D src; 104// layout(location = 0)out ivec4 dest; 105// 106// layout(push_constant)uniform PushConstants { 107// 108// ivec2 srcOffset; 109// ivec2 destOffset; 110// int srcMip; 111// int srcLayer; 112// 113// bool flipX; 114// bool flipY; 115// 116// bool premultiplyAlpha; 117// bool unmultiplyAlpha; 118// 119// bool destHasLuminance; 120// bool destIsAlpha; 121// 122// bool srcIsSRGB; 123// bool destIsSRGB; 124// 125// int destDefaultChannelsMask; 126// bool rotateXY; 127// } params; 128// 129// void main() 130// { 131// ivec2 destSubImageCoords = ivec2(gl_FragCoord . xy)- params . destOffset; 132// 133// ivec2 srcSubImageCoords = destSubImageCoords; 134// 135// if(params . flipX) 136// { 137// srcSubImageCoords . x = - srcSubImageCoords . x; 138// } 139// if(params . flipY) 140// { 141// srcSubImageCoords . y = - srcSubImageCoords . y; 142// } 143// if(params . rotateXY) 144// { 145// srcSubImageCoords . xy = srcSubImageCoords . yx; 146// } 147// 148// ivec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); 149// 150// if(params . premultiplyAlpha) 151// { 152// srcValue . rgb *= srcValue . a; 153// } 154// else if(params . unmultiplyAlpha && srcValue . a > 0) 155// { 156// srcValue . rgb /= srcValue . a; 157// } 158// 159// ivec4 destValue = ivec4(srcValue); 160// 161// if(params . destHasLuminance) 162// { 163// destValue . rg = destValue . ra; 164// } 165// else if(params . destIsAlpha) 166// { 167// destValue . r = destValue . a; 168// } 169// else 170// { 171// int defaultChannelsMask = params . destDefaultChannelsMask; 172// if((defaultChannelsMask & 2)!= 0) 173// { 174// destValue . g = 0; 175// } 176// if((defaultChannelsMask & 4)!= 0) 177// { 178// destValue . b = 0; 179// } 180// if((defaultChannelsMask & 8)!= 0) 181// { 182// destValue . a = 1; 183// } 184// } 185// 186// dest = destValue; 187// } 188