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.00000029.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000029[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x8b,0x53,0x55,0x55, 14 0x14,0xc6,0x0f,0xf7,0xc2,0xbd,0x3c,0xe4,0x21,0xa0,0x84,0x8a,0x25,0x4a,0x96,0x18, 15 0x62,0x81,0x99,0x40,0x69,0x46,0x92,0x51,0x0a,0x9a,0x95,0x50,0x46,0x92,0x68,0x21, 16 0x95,0x98,0x69,0x12,0x89,0x29,0x5a,0x5a,0x49,0xf9,0xe8,0x25,0x56,0xa2,0x95,0xa0, 17 0xf5,0x5f,0xf4,0x17,0x35,0x3d,0x66,0x9a,0x69,0xaf,0x73,0x7f,0x8b,0xf9,0xba,0x63, 18 0xc5,0xcc,0x9e,0x7b,0xd6,0xb7,0xd6,0xfe,0xf6,0xb7,0xd6,0xda,0x67,0x1d,0x92,0x89, 19 0xa5,0xe9,0x28,0xca,0x89,0x0a,0xa3,0xfc,0xe8,0xe7,0x28,0xf3,0x37,0x37,0x4a,0x04, 20 0x24,0x8a,0x8a,0xa2,0x54,0xfc,0xbb,0xa9,0x73,0x5b,0x67,0xc3,0xf0,0xc1,0xfe,0x86, 21 0xa6,0xe6,0x46,0xf3,0x97,0x44,0xc9,0x38,0xce,0x7c,0xa5,0x51,0x3a,0xca,0x0d,0xbf, 22 0xb6,0xf6,0xf7,0xed,0x1b,0x32,0xbc,0x38,0xac,0x5b,0x61,0x95,0x85,0x38,0xc3,0xd3, 23 0xc6,0x11,0x9e,0x8a,0x63,0x4e,0xdb,0x13,0x45,0x1d,0x51,0x5e,0x54,0xc1,0x79,0x4b, 24 0xf9,0x75,0x2c,0x07,0x2c,0x5f,0xb0,0x04,0x58,0x99,0x60,0x49,0xb0,0x4a,0xc1,0x72, 25 0xc1,0xee,0x10,0x2c,0x0f,0x6c,0x91,0x60,0x29,0xb0,0xbb,0x04,0x4b,0x83,0x2d,0x13, 26 0x2c,0x1f,0xec,0x1e,0xc1,0x0a,0xc0,0x56,0x0a,0x56,0x08,0xd6,0x28,0x58,0x11,0x58, 27 0x93,0x60,0x73,0xc0,0xd6,0x0a,0x56,0x0c,0xd6,0x1a,0xd7,0x29,0x39,0x9b,0xaf,0xd5, 28 0x6c,0x63,0xf8,0xad,0xa5,0x3e,0x6e,0x2f,0x11,0xdb,0xea,0xbc,0x18,0xbb,0x22,0xec, 29 0x4a,0xc4,0xfe,0x64,0x5c,0x1b,0x7b,0x9e,0x17,0x62,0x52,0xe4,0x69,0x75,0xad,0x0a, 30 0x76,0x9a,0xfc,0x13,0x31,0x9e,0x1b,0xe7,0x98,0x66,0xcd,0x0f,0x3b,0x0b,0x89,0xb7, 31 0xd8,0x22,0x72,0xcb,0x25,0x76,0x0e,0x3c,0x86,0xb7,0x60,0x17,0x0b,0x77,0x09,0xf1, 32 0x7e,0x76,0x39,0x5c,0x51,0xac,0xb3,0x6c,0xb6,0xce,0xae,0xc1,0x56,0xf9,0xff,0x2c, 33 0x8f,0xb1,0xf3,0x2b,0xa9,0x7f,0x05,0xe7,0x57,0xc6,0xe7,0x64,0xb0,0x7a,0x72,0x9d, 34 0x8f,0x1e,0x8b,0xaf,0xc2,0x97,0x16,0x7f,0x8d,0xe4,0xb3,0x18,0x7f,0x79,0x7c,0x8f, 35 0x12,0x71,0x6d,0xeb,0xd1,0xed,0x75,0xb7,0xb8,0xbb,0x45,0xb3,0xf3,0xd4,0x73,0xb7, 36 0x3c,0x7e,0x35,0xe7,0xba,0x7f,0x0d,0xb5,0xb1,0xba,0x3c,0xcc,0x19,0x7e,0xee,0x23, 37 0xf0,0x19,0x5e,0x1d,0x14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1e,0x3f,0x25,0x5a,0xbe,0xcf,0xd2,0xf2,0x03,0xd8,0x98,0x68,0xf9, 91 0x11,0xdc,0xb5,0x4c,0x8b,0x16,0xf3,0xdd,0x88,0x63,0x33,0xdc,0x37,0x44,0xcb,0x8c, 92 0xf4,0xdd,0xb4,0xcc,0xf0,0xff,0x9d,0x69,0xf1,0xf8,0xe9,0xac,0x1e,0x4f,0x64,0xdd, 93 0xd1,0x71,0xb9,0xf3,0x3f,0xc1,0x67,0x5c,0xb7,0xb0,0xff,0x0a,0x93,0x65,0x6d,0x58, 94 0x7f,0x03,0x68,0xf8,0x00,0xc3,0xd8,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 utexture3D 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// uvec4 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