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.00000018.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000018[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xfd,0x4f,0x96,0x55, 14 0x18,0xc7,0xef,0xe7,0x1d,0x21,0x5e,0x04,0x94,0x70,0x62,0x99,0xb2,0xd5,0x30,0x78, 15 0x5a,0x64,0x04,0xe9,0x46,0x46,0x26,0xa2,0xa4,0xb0,0xd5,0xd2,0x85,0x16,0xac,0x84, 16 0x69,0x3a,0xf9,0x01,0x4a,0x58,0x2b,0xdf,0x60,0x73,0xcc,0x5a,0xc1,0x56,0xf0,0x43, 17 0xc2,0x74,0xab,0xd6,0x4f,0xad,0xb5,0xd2,0x95,0x56,0xfe,0x45,0xad,0x97,0xad,0xad, 18 0x73,0x9d,0xe7,0x73,0xb9,0x6f,0xcf,0x6a,0x3e,0xdb,0xd9,0x7d,0x9f,0xef,0xf5,0xf6, 19 0xfd,0x5e,0xe7,0xba,0x0f,0x64,0xd2,0xdb,0x0a,0x49,0x92,0x4a,0x2a,0x93,0x8a,0xe4, 20 0x6e,0x52,0xfa,0xad,0x4f,0xd2,0x01,0x49,0x92,0xaa,0x24,0x1f,0x9f,0x7b,0x07,0x86, 21 0x06,0xda,0xcf,0x4e,0x8e,0xb6,0x77,0x3e,0x55,0x34,0x7b,0x4d,0x92,0x89,0x7e,0x66, 22 0xab,0x4d,0x0a,0x49,0x36,0x3c,0x6d,0x9d,0x3c,0x7e,0xe2,0x94,0xe1,0xd5,0x61,0xdd, 23 0x08,0xab,0x2e,0xf8,0x19,0x5e,0xb0,0x1c,0xe1,0xad,0x3a,0xe6,0xb4,0x98,0x24,0x79, 24 0x31,0xc9,0x25,0x0d,0xd4,0xdb,0xc6,0xd3,0xb1,0x14,0x58,0x85,0x60,0x69,0xb0,0x3a, 25 0xc1,0x32,0x60,0x8d,0x82,0x65,0xc1,0x1e,0x14,0x2c,0x07,0xb6,0x59,0xb0,0x3c,0xd8, 26 0xc3,0x82,0x15,0xc0,0xb6,0x0b,0x56,0x01,0xf6,0xa8,0x60,0xeb,0xc0,0x76,0x08,0x56, 27 0x09,0x56,0x14,0xac,0x0a,0xac,0x53,0xb0,0x07,0xc0,0xba,0x04,0xab,0x06,0x7b,0x36, 28 0xf6,0x29,0x73,0x4f,0xaf,0xf5,0x6c,0x4f,0x78,0x3e,0x42,0x7f,0x7c,0xbf,0x55,0xf6, 29 0xd6,0xe7,0x2d,0xec,0x1b,0x42,0x54,0x3a,0xda,0x33,0xb1,0x37,0xf6,0xbe,0x21,0xf8, 30 0xe4,0xd1,0x69,0x7d,0x6d,0x0a,0xfb,0x02,0xfa,0xcd,0xbe,0x31,0x78,0x56,0x62,0x37, 31 0x5b,0x15,0x5a,0xb2,0x11,0xcb,0x46,0xbe,0x29,0xb4,0xf4,0xb0,0xaf,0x96,0x5c,0x35, 32 0xf8,0x7b,0xad,0x7a,0x72,0x25,0x91,0x57,0xdd,0xbd,0xbe,0x7a,0x4d,0x5b,0xf5,0xf7, 33 0x59,0xee,0x63,0xf5,0x1b,0xe9,0x77,0x03,0xf5,0x1b,0x63,0x9d,0x12,0xd6,0x86,0xb6, 34 0x8d,0xf0,0x31,0xff,0x26,0x6c,0x05,0xb1,0xb7,0x88,0x9e,0x2d,0xd8,0xeb,0xe3,0xdc, 35 0xa4,0x63,0x2f,0xdb,0xe0,0xed,0x7d,0xf6,0xb8,0x36,0x66,0xc7,0xed,0x4f,0x50,0xc7, 36 0xed,0x3b,0xe9,0x85,0xf5,0x61,0x37,0xbc,0xad,0x4e,0x73,0xa8,0xd0,0xcb,0x3e,0x95, 37 0xfc,0xfb,0xe7,0x7b,0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e,0x45,0xdf,0x94,0xdc,0xdb,0xee,0xb7,0xc4,0x59,0x9b,0xdf,0x6d,0x7c,0x16, 78 0x88,0x59,0x14,0x3e,0x9f,0xc2,0xa7,0x45,0xf8,0x7c,0x06,0xee,0x7c,0x56,0x84,0x8f, 79 0xd9,0x96,0xc3,0x5a,0xa1,0xce,0xb2,0xf0,0xf9,0x0e,0x3e,0xb7,0x39,0x43,0xe3,0xe3, 80 0x7e,0x2b,0xc2,0xe7,0x0e,0x3e,0x4b,0xc4,0x2c,0x0b,0x9f,0xcf,0xe1,0x33,0x2d,0x7c, 81 0xae,0x81,0x3b,0x9f,0x35,0xe1,0x63,0xb6,0xd5,0xb0,0xd6,0xa8,0xb3,0x2a,0x7c,0xbe, 82 0xe7,0x7f,0xbc,0x3b,0x32,0x4f,0xee,0xb7,0x26,0x7c,0x7e,0xc5,0x67,0x85,0x98,0xd5, 83 0xb2,0x33,0x9e,0x17,0xdf,0x5f,0x98,0x87,0x39,0xe2,0xd6,0xca,0xe6,0x74,0x56,0x7c, 84 0x7f,0x66,0xbe,0x67,0x88,0xb3,0x3c,0xbb,0x03,0x93,0x1b,0xd8,0xfe,0x0e,0xa7,0xd6, 85 0x15,0xd6,0x3f,0x97,0xda,0x83,0x8c,0xb4,0x0d,0x00,0x00 86}; 87 88// Generated from: 89// 90// #version 450 core 91// 92// #extension GL_EXT_samplerless_texture_functions : require 93// 94// layout(set = 0, binding = 0)uniform itexture2D src; 95// layout(location = 0)out uvec4 dst; 96// 97// layout(push_constant)uniform PushConstants { 98// 99// ivec2 srcOffset; 100// ivec2 dstOffset; 101// int srcMip; 102// int srcLayer; 103// 104// bool flipX; 105// bool flipY; 106// 107// bool premultiplyAlpha; 108// bool unmultiplyAlpha; 109// 110// bool dstHasLuminance; 111// bool dstIsAlpha; 112// 113// bool srcIsSRGB; 114// bool dstIsSRGB; 115// 116// int dstDefaultChannelsMask; 117// bool rotateXY; 118// } params; 119// 120// void main() 121// { 122// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; 123// 124// ivec2 srcSubImageCoords = dstSubImageCoords; 125// 126// if(params . flipX) 127// { 128// srcSubImageCoords . x = - srcSubImageCoords . x; 129// } 130// if(params . flipY) 131// { 132// srcSubImageCoords . y = - srcSubImageCoords . y; 133// } 134// if(params . rotateXY) 135// { 136// srcSubImageCoords . xy = srcSubImageCoords . yx; 137// } 138// 139// ivec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip); 140// 141// if(params . premultiplyAlpha) 142// { 143// srcValue . rgb *= srcValue . a; 144// } 145// else if(params . unmultiplyAlpha && srcValue . a > 0) 146// { 147// srcValue . rgb /= srcValue . a; 148// } 149// 150// uvec4 dstValue = uvec4(srcValue); 151// 152// if(params . dstHasLuminance) 153// { 154// dstValue . rg = dstValue . ra; 155// } 156// else if(params . dstIsAlpha) 157// { 158// dstValue . r = dstValue . a; 159// } 160// else 161// { 162// int defaultChannelsMask = params . dstDefaultChannelsMask; 163// if((defaultChannelsMask & 2)!= 0) 164// { 165// dstValue . g = 0; 166// } 167// if((defaultChannelsMask & 4)!= 0) 168// { 169// dstValue . b = 0; 170// } 171// if((defaultChannelsMask & 8)!= 0) 172// { 173// dstValue . a = 1; 174// } 175// } 176// 177// dst = dstValue; 178// } 179