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