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.00000019.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000019[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xfd,0x4b,0x9e,0x55, 14 0x18,0xc7,0xef,0xe7,0xdd,0x69,0xbe,0x4c,0xdd,0xcc,0x91,0xab,0xb5,0x09,0x85,0x4b, 15 0x8d,0x6c,0x99,0xb6,0x81,0x2d,0x5b,0x2d,0x6b,0xd3,0xbd,0x54,0x0a,0x95,0x63,0xae, 16 0xa6,0xcc,0x94,0xd5,0x46,0x23,0x74,0x4d,0x21,0xda,0x2a,0x85,0x90,0x15,0xa5,0x50, 17 0xfa,0x43,0x29,0xee,0x87,0xa0,0x9f,0x22,0xa2,0x36,0xda,0xd6,0xcb,0x9f,0x13,0xbd, 18 0x40,0xd0,0xb9,0xce,0xf3,0xb9,0xc6,0x97,0x87,0x62,0xc2,0xe1,0xbe,0xcf,0xf7,0x7a, 19 0xfb,0x7e,0xaf,0x73,0xdd,0xe7,0x31,0x93,0xde,0x5e,0x48,0x92,0x54,0x52,0x9e,0x94, 20 0x25,0xbf,0x25,0xc5,0xbf,0x8d,0x49,0x3a,0x20,0x49,0x52,0x91,0xe4,0xe3,0x73,0x5f, 21 0xdf,0xa1,0xbe,0xd6,0xd3,0x6f,0x1c,0x6f,0xed,0x78,0xb8,0xdd,0xec,0x55,0x49,0x26, 22 0xfa,0x99,0xad,0x3a,0x29,0x24,0xd9,0xf0,0xb4,0x75,0x6a,0xf8,0xe4,0xb8,0xe1,0x95, 23 0x61,0x5d,0x09,0xab,0x26,0xf8,0x19,0x5e,0xb0,0x1c,0xe1,0xad,0x32,0xe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3e,0x86,0xd7,0x65,0xb9,0x17,0x3e,0x01,0xbf,0xce,0xdc,0x7c,0x0a,0x36,0x20,0x5c, 78 0x3f,0x03,0xef,0x85,0xeb,0x92,0x70,0x35,0xdb,0x62,0x58,0x4b,0xd4,0x5b,0x14,0x5e, 79 0xdf,0xa1,0x6f,0x4a,0x7e,0x1b,0xdc,0x6f,0x89,0xb3,0x36,0xbf,0x1b,0xf8,0x2c,0x10, 80 0xb3,0x28,0x7c,0x3e,0x87,0x4f,0x93,0xf0,0xf9,0x02,0xdc,0xf9,0xac,0x08,0x1f,0xb3, 81 0x2d,0x87,0xb5,0x42,0x9d,0x65,0xe1,0xf3,0x3d,0x7c,0x6e,0x70,0x86,0xc6,0xc7,0xfd, 82 0x56,0x84,0xcf,0x4d,0x7c,0x96,0x88,0x59,0x16,0x3e,0x5f,0xc2,0x67,0x5a,0xf8,0x7c, 83 0x05,0xee,0x7c,0xd6,0x84,0x8f,0xd9,0x56,0xa3,0x6f,0xb1,0xce,0xaa,0xf0,0xf9,0x81, 84 0xff,0x2b,0x6f,0xca,0x3c,0xb9,0xdf,0x9a,0xf0,0xf9,0x15,0x9f,0x15,0x62,0x56,0x4b, 85 0xce,0x78,0x5e,0x7c,0x7f,0x61,0x1e,0xe6,0x88,0x5b,0x2b,0x99,0xd3,0x59,0xf1,0xfd, 86 0x99,0xf9,0x9e,0x21,0xce,0xf2,0xec,0x09,0x4c,0xae,0x60,0xfb,0x27,0x9c,0x5a,0x67, 87 0x58,0xff,0x02,0x9b,0x13,0x36,0x51,0x28,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 itexture2DArray 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// ivec4 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