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,0xd9,0x4f,0x5d,0x55, 14 0x14,0xc6,0xcf,0x9d,0x29,0xc8,0x50,0xa0,0x45,0x1a,0xa9,0x76,0x20,0xd1,0x50,0xe1, 15 0x1a,0xb1,0x22,0xd8,0x26,0x58,0xb1,0x5a,0xd1,0x16,0x3a,0xa8,0xf0,0xe0,0x50,0x22, 16 0xad,0x42,0x55,0xd0,0xd8,0xc6,0xc4,0x18,0xa9,0x85,0x17,0x5b,0x15,0x62,0x48,0x35, 17 0x0a,0x89,0xc2,0x43,0x0b,0xa9,0x0f,0x26,0x3e,0x19,0x63,0xb4,0x04,0x5b,0x87,0x7f, 18 0xc6,0x38,0x24,0x26,0xee,0xb5,0xef,0x6f,0x35,0x5f,0x6e,0x34,0x25,0xd9,0x39,0x67, 19 0x7f,0x6b,0xfa,0xbe,0xb5,0xd7,0xd9,0xdc,0x4c,0x7a,0x47,0x21,0x49,0x52,0x49,0x65, 20 0x52,0x91,0xfc,0x96,0x94,0xfe,0x36,0x26,0xe9,0x80,0x24,0x49,0x55,0x92,0x8f,0xcf, 21 0xfd,0xfd,0x87,0xfb,0xdb,0x27,0x5f,0x1f,0x69,0xef,0xbc,0xaf,0x68,0xf6,0x9a,0x24, 22 0x13,0xfd,0xcc,0x56,0x9b,0x14,0x92,0x6c,0x78,0xda,0x1a,0x7f,0xfe,0xe4,0x29,0xc3, 23 0xab,0xc3,0xfa,0x2a,0xac,0xba,0xe0,0x67,0x78,0xc1,0x72,0x84,0xb7,0xea,0x98,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1a,0xf7,0xca,0x67,0x60,0x83,0xc2,0xf5,0x73,0xf0,0x3e,0xb8,0x2e, 78 0x0a,0x57,0xb3,0x2d,0x84,0xb5,0x48,0xbd,0x05,0xe1,0xf5,0x1d,0xfa,0xd6,0xe5,0x7f, 79 0x81,0xfb,0x2d,0xca,0xd9,0x5e,0xc3,0x67,0x9e,0x98,0x05,0xe1,0xf3,0x05,0x7c,0x5a, 80 0x84,0xcf,0x97,0xe0,0xce,0x67,0x59,0xf8,0x98,0x6d,0x29,0xac,0x65,0xea,0x2c,0x09, 81 0x9f,0xef,0xe1,0x73,0x8d,0x33,0x34,0x3e,0xee,0xb7,0x2c,0x7c,0xae,0xe3,0xb3,0x48, 82 0xcc,0x92,0xf0,0xb9,0x04,0x9f,0x29,0xe1,0x73,0x19,0xdc,0xf9,0xac,0x0a,0x1f,0xb3, 83 0xad,0x84,0xb5,0x4a,0x9d,0x15,0xe1,0xf3,0x03,0xbf,0x23,0xaf,0xcb,0x3c,0xb9,0xdf, 84 0xaa,0xf0,0xf9,0x15,0x9f,0x65,0x62,0x56,0xca,0xce,0x78,0x4e,0x7c,0x7f,0x61,0x1e, 85 0x66,0x89,0x5b,0x2d,0x9b,0xd3,0x19,0xf1,0xfd,0x99,0xf9,0x9e,0x26,0x6e,0x2e,0xfe, 86 0x5e,0xcb,0xc4,0xdf,0x69,0x66,0xfb,0x27,0x9c,0x5a,0x57,0x58,0xff,0x02,0x19,0x82, 87 0xa5,0x3d,0x18,0x0e,0x00,0x00 88}; 89 90// Generated from: 91// 92// #version 450 core 93// 94// #extension GL_EXT_samplerless_texture_functions : require 95// 96// layout(set = 0, binding = 0)uniform utexture2DArray src; 97// layout(location = 0)out uvec4 dst; 98// 99// layout(push_constant)uniform PushConstants { 100// 101// ivec2 srcOffset; 102// ivec2 dstOffset; 103// int srcMip; 104// int srcLayer; 105// 106// bool flipX; 107// bool flipY; 108// 109// bool premultiplyAlpha; 110// bool unmultiplyAlpha; 111// 112// bool dstHasLuminance; 113// bool dstIsAlpha; 114// 115// bool srcIsSRGB; 116// bool dstIsSRGB; 117// 118// int dstDefaultChannelsMask; 119// bool rotateXY; 120// } params; 121// 122// void main() 123// { 124// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; 125// 126// ivec2 srcSubImageCoords = dstSubImageCoords; 127// 128// if(params . flipX) 129// { 130// srcSubImageCoords . x = - srcSubImageCoords . x; 131// } 132// if(params . flipY) 133// { 134// srcSubImageCoords . y = - srcSubImageCoords . y; 135// } 136// if(params . rotateXY) 137// { 138// srcSubImageCoords . xy = srcSubImageCoords . yx; 139// } 140// 141// uvec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); 142// 143// if(params . premultiplyAlpha) 144// { 145// srcValue . rgb *= srcValue . a; 146// } 147// else if(params . unmultiplyAlpha && srcValue . a > 0) 148// { 149// srcValue . rgb /= srcValue . a; 150// } 151// 152// uvec4 dstValue = uvec4(srcValue); 153// 154// if(params . dstHasLuminance) 155// { 156// dstValue . rg = dstValue . ra; 157// } 158// else if(params . dstIsAlpha) 159// { 160// dstValue . r = dstValue . a; 161// } 162// else 163// { 164// int defaultChannelsMask = params . dstDefaultChannelsMask; 165// if((defaultChannelsMask & 2)!= 0) 166// { 167// dstValue . g = 0; 168// } 169// if((defaultChannelsMask & 4)!= 0) 170// { 171// dstValue . b = 0; 172// } 173// if((defaultChannelsMask & 8)!= 0) 174// { 175// dstValue . a = 1; 176// } 177// } 178// 179// dst = dstValue; 180// } 181