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.00000013.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000013[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x98,0x6d,0x68,0x96,0x55, 14 0x18,0xc7,0xcf,0x79,0x9e,0xbd,0xa9,0xd3,0xcc,0x34,0xe7,0xdb,0xd8,0x7c,0xcb,0xda, 15 0x9a,0x2f,0xd9,0x34,0xf5,0x51,0x97,0x2f,0x1b,0x35,0x9d,0x9b,0x64,0x68,0xb6,0xb2, 16 0x2c,0x5d,0xa5,0x2b,0x37,0x28,0x52,0x74,0xea,0x86,0xe6,0x88,0x94,0x3e,0x44,0x65, 17 0xa6,0x10,0x44,0x44,0x06,0x56,0xfa,0x21,0xad,0x1c,0x61,0x16,0xe5,0x82,0x72,0x50, 18 0x2e,0xf4,0x53,0x1f,0x23,0x49,0x4b,0x8d,0xa8,0x73,0xdd,0xe7,0x77,0x6d,0x57,0xa3, 19 0x97,0x07,0x0e,0xf7,0x7d,0xfd,0xaf,0xf7,0xff,0xb9,0xce,0xb9,0x9d,0xe9,0xd4,0xb8, 20 0x5c,0xe7,0xbc,0xeb,0xef,0xf2,0x5c,0x9d,0x77,0xc9,0xef,0x7a,0x97,0x72,0x9e,0xe7, 21 0xb4,0xf0,0x1c,0xe0,0x72,0x12,0xb9,0xb2,0x7a,0x79,0x75,0x59,0x53,0xf3,0xda,0xb2, 22 0xe9,0xb7,0x4f,0x11,0xbb,0x41,0x2e,0x9d,0xd8,0x8b,0xee,0x3a,0x97,0xeb,0xb2,0xc2, 23 0x53,0xd6,0x86,0x35,0x0d,0x1b,0x05,0x9f,0x18,0xd6,0x85,0xb0,0x06,0x07,0x3b,0xc1, 24 0x73,0x25,0x46,0x78,0x9b,0x98,0xc4,0x14,0x1f,0xe7,0xaa,0x5c,0xb6,0x2b,0x8d,0x69, 25 0xdd,0x38,0x9e,0x8a,0x79,0xb0,0x3c,0x83,0xa5,0xc0,0x06,0x1b,0x2c,0x0d,0x36,0xd4, 26 0x60,0x59,0x60,0x05,0x06,0xcb,0x06,0x1b,0x6d,0xb0,0x1c,0xb0,0x22,0x83,0xe5,0x82, 27 0x8d,0x37,0x58,0x1e,0xd8,0x24,0x83,0xf5,0x03,0x2b,0x35,0x58,0x7f,0xb0,0x29,0x06, 28 0x1b,0x00,0x36,0xdd,0x60,0xf9,0x60,0x33,0x0d,0x36,0x10,0x6c,0x4e,0xc2,0x53,0xba, 29 0xa7,0x5f,0xe1,0x6c,0x75,0x78,0x8e,0x85,0x1f,0x95,0x8b,0x8d,0x2c,0x3c,0x17,0x22, 30 0xdf,0x10,0xbc,0x52,0x89,0x3e,0x9d,0x70,0x23,0xef,0x37,0x86,0xb7,0x1c,0xfa,0x2c, 31 0x09,0xf6,0x39,0xe4,0xfb,0xf1,0xf0,0x84,0xcc,0xd0,0x60,0x31,0xc8,0xe0,0xc2,0xd9, 32 0xe1,0xca,0x35,0x19,0x95,0x85,0xaf,0x57,0x5e,0x1e,0x31,0x7f,0x58,0x90,0x8b,0x88, 33 0x21,0x7b,0x33,0x3c,0xc8,0xc5,0xc8,0x29,0xe4,0xf1,0x70,0x9a,0x95,0xe0,0x59,0x6e, 34 0x02,0xb6,0x82,0xcf,0x46,0x9e,0x68,0xfc,0x6f,0xc2,0x5e,0xfc,0x25,0x7e,0x09,0xf1, 35 0x5c,0xd2,0xcf,0xe0,0x84,0x83,0x62,0x56,0x51,0x4f,0xfd,0xff,0xbd,0x8a,0x7a,0x9e, 36 0x59,0xee,0x56,0xf6,0xa9,0x94,0xfc,0x22,0x97,0x81,0x95,0xd0,0xcf,0x64,0xea,0x11, 37 0xfb,0x29,0xe8,0x8a,0x8d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,0x01,0xfe,0x76,0xb0,0x19, 51 0x94,0xf0,0x12,0x31,0x99,0xbb,0xdf,0x42,0xe5,0x19,0xea,0xb9,0x16,0xec,0x67,0x73, 52 0x7f,0x64,0xe8,0x47,0xde,0x6b,0x83,0x9f,0xec,0xc3,0x7c,0x72,0xca,0x6f,0x2b,0x7b, 53 0x53,0x01,0x5e,0x17,0xd8,0x91,0x9a,0xc6,0xfa,0x88,0xa9,0xdd,0xd5,0x10,0x43,0x63, 54 0xc9,0xf3,0x72,0xe0,0x42,0xec,0xe6,0xfb,0x68,0x93,0x8d,0xcf,0x1c,0xd3,0xc3,0x42, 55 0x7a,0x58,0x60,0x7a,0x58,0x04,0xae,0x3d,0x2c,0x06,0xd3,0x1e,0xaa,0x4c,0x0f,0x8b, 56 0x93,0x3b,0xcd,0x25,0x98,0xe4,0xad,0x34,0x3d,0xdc,0x4d,0x6e,0x6f,0x7a,0xa8,0x06, 57 0xd7,0x1e,0x26,0xf8,0x88,0xa9,0x9d,0xf4,0xa0,0xb1,0xaa,0x4c,0x0f,0x15,0x3e,0xda, 58 0x64,0xf0,0xa9,0x34,0x3d,0xd4,0xd0,0xc3,0x52,0xd3,0xc3,0x32,0x70,0xed,0xa1,0x16, 59 0x4c,0x7b,0x58,0x6e,0x7a,0xa8,0x4d,0xea,0x71,0x09,0x26,0x79,0xeb,0x98,0x23,0xc9, 60 0x7b,0x0f,0xb9,0x2b,0x7c,0xef,0x39,0x97,0x1a,0xd5,0x76,0xb9,0xa9,0xf1,0x4e,0xec, 61 0xaa,0xf0,0xab,0xa3,0x1e,0x39,0xff,0xf7,0x73,0xf6,0x75,0xe6,0x1e,0xa0,0xe6,0x7a, 62 0x33,0x73,0x0f,0x82,0xb7,0x30,0x73,0x0f,0x81,0x49,0xdc,0x46,0xee,0xdf,0x87,0xc1, 63 0xd7,0x06,0x59,0xee,0x99,0x47,0x88,0xbd,0x0e,0x9f,0x47,0xc1,0xea,0x5d,0xaf,0xcf, 64 0x3a,0xf0,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0x7c,0x62, 91 0xa6,0x7d,0xaf,0x7f,0x36,0x31,0x95,0x23,0xb5,0x91,0x9a,0x94,0x23,0xc1,0x94,0xa3, 92 0x2a,0x1f,0xe3,0x4b,0x5d,0xd9,0xd4,0xaa,0x1c,0x95,0xf9,0xa8,0x2f,0x21,0xbf,0x72, 93 0xf4,0x2e,0x1c,0xa5,0xe8,0xb7,0xb0,0x0f,0x47,0x43,0xc8,0x39,0xc4,0x70,0x34,0xd4, 94 0x47,0x3f,0xe5,0x68,0x8c,0xe1,0x48,0x74,0xc3,0xc2,0x2a,0xc0,0xaf,0xc0,0x70,0x34, 95 0x12,0x3f,0xcb,0xd1,0x28,0x1f,0x71,0xcb,0xd1,0x68,0xc3,0xd1,0x28,0xc3,0x51,0x21, 96 0x31,0x87,0x19,0x8e,0x86,0x13,0x53,0x39,0x52,0x9b,0x31,0x86,0xa3,0x42,0xc3,0xd1, 97 0x5d,0x3e,0xc6,0x97,0xba,0x86,0x53,0xab,0x72,0x34,0xd5,0x47,0xbd,0x70,0x95,0x22, 98 0xa7,0x9e,0xbd,0x43,0xcc,0xa2,0xd8,0x55,0x33,0x6b,0xcd,0xf8,0x14,0x9a,0x33,0xff, 99 0x1e,0x67,0xfe,0x88,0x39,0xf3,0xef,0x83,0xeb,0x99,0xff,0x00,0x4c,0xcf,0xfc,0x31, 100 0x73,0x0e,0x45,0x77,0x34,0x39,0xb3,0x31,0xef,0x71,0xf3,0xdd,0xfa,0x88,0xd8,0x27, 101 0x4c,0xec,0x8f,0xc1,0x35,0xf6,0x27,0x60,0x1a,0xbb,0xc3,0xc4,0x16,0xdd,0xc9,0xb0, 102 0x4e,0x11,0xfb,0x94,0xf9,0x7e,0x7f,0x4e,0xec,0xd3,0xe6,0xfb,0xfd,0x05,0xf8,0x67, 103 0xdc,0xd1,0x5f,0x82,0x35,0x98,0x7c,0x5f,0x81,0xd7,0x93,0xaf,0xd3,0xe4,0x13,0xdd, 104 0x99,0xb0,0x3a,0xc9,0x77,0xc6,0x9c,0xd9,0x72,0x1f,0xff,0x36,0xa8,0x36,0xff,0x6e, 105 0x53,0xbb,0x4e,0xc3,0xf5,0x12,0x1f,0x6d,0x4e,0xe1,0x73,0xc6,0xd4,0xf3,0x0d,0xf5, 106 0x94,0x9b,0x7a,0xbe,0x05,0xd7,0x7a,0xba,0x4c,0x3d,0xa2,0x3b,0x1b,0x56,0x17,0x79, 107 0xce,0x9a,0x7a,0x66,0x52,0xcf,0x12,0xb3,0xf7,0x6a,0xd7,0x65,0xea,0x59,0xea,0xa3, 108 0x4d,0x27,0x3e,0x67,0x4d,0x3d,0xdf,0x51,0xcf,0x11,0x53,0xcf,0xf7,0xe0,0x5a,0x4f, 109 0xb7,0xa9,0x47,0x74,0xe7,0xc2,0xea,0x26,0xcf,0x39,0x53,0xcf,0x2c,0x1f,0xff,0x56, 110 0x92,0x7c,0xfa,0x8d,0x52,0xbb,0x6e,0x53,0x4f,0xad,0x8f,0x36,0x5d,0xf8,0x9c,0xc3, 111 0xb6,0x03,0xdb,0x93,0xe6,0xac,0x7f,0x0a,0xdf,0x69,0x93,0x67,0xba,0xef,0xc5,0x5d, 112 0x1f,0xdf,0x0e,0x93,0x67,0x99,0x8f,0xb9,0xba,0xf1,0x39,0x89,0xed,0x31,0x6c,0x8f, 113 0xf2,0xad,0x15,0xdb,0x0f,0x89,0x27,0x4b,0xff,0x2f,0x28,0x65,0xbe,0xb5,0xea,0x73, 114 0xcc,0xc4,0xaf,0xf1,0x31,0x47,0x07,0xfe,0x12,0x6f,0x6e,0xf0,0xb8,0x80,0xee,0x8f, 115 0x30,0x25,0x33,0xc3,0xfa,0x0b,0x4a,0x3a,0x0e,0xd5,0xc4,0x12,0x00,0x00 116}; 117 118// Generated from: 119// 120// #version 450 core 121// 122// #extension GL_EXT_samplerless_texture_functions : require 123// 124// layout(set = 0, binding = 0)uniform isampler2D src; 125// layout(location = 0)out vec4 dst; 126// 127// layout(push_constant)uniform PushConstants { 128// 129// ivec2 srcOffset; 130// ivec2 dstOffset; 131// int srcMip; 132// int srcLayer; 133// 134// bool flipX; 135// bool flipY; 136// 137// bool premultiplyAlpha; 138// bool unmultiplyAlpha; 139// 140// bool dstHasLuminance; 141// bool dstIsAlpha; 142// 143// bool srcIsSRGB; 144// bool dstIsSRGB; 145// 146// int dstDefaultChannelsMask; 147// bool rotateXY; 148// } params; 149// 150// float sRGBToLinear(float sRGB) 151// { 152// 153// if(sRGB <= 0.04045) 154// { 155// return sRGB / 12.92; 156// } 157// else 158// { 159// return pow((sRGB + 0.055f)/ 1.055f, 2.4f); 160// } 161// } 162// 163// void main() 164// { 165// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; 166// 167// ivec2 srcSubImageCoords = dstSubImageCoords; 168// 169// if(params . flipX) 170// { 171// srcSubImageCoords . x = - srcSubImageCoords . x; 172// } 173// if(params . flipY) 174// { 175// srcSubImageCoords . y = - srcSubImageCoords . y; 176// } 177// if(params . rotateXY) 178// { 179// srcSubImageCoords . xy = srcSubImageCoords . yx; 180// } 181// 182// ivec4 srcValue = texture( 183// src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip); 184// 185// if(params . premultiplyAlpha) 186// { 187// srcValue . rgb *= srcValue . a; 188// } 189// else if(params . unmultiplyAlpha && srcValue . a > 0) 190// { 191// srcValue . rgb /= srcValue . a; 192// } 193// 194// vec4 dstValue = vec4(srcValue); 195// 196// dstValue /= 255.0; 197// 198// if(params . dstIsSRGB) 199// { 200// 201// dstValue . r = sRGBToLinear(dstValue . r); 202// dstValue . g = sRGBToLinear(dstValue . g); 203// dstValue . b = sRGBToLinear(dstValue . b); 204// } 205// 206// if(params . dstHasLuminance) 207// { 208// dstValue . rg = dstValue . ra; 209// } 210// else if(params . dstIsAlpha) 211// { 212// dstValue . r = dstValue . a; 213// } 214// else 215// { 216// int defaultChannelsMask = params . dstDefaultChannelsMask; 217// if((defaultChannelsMask & 2)!= 0) 218// { 219// dstValue . g = 0; 220// } 221// if((defaultChannelsMask & 4)!= 0) 222// { 223// dstValue . b = 0; 224// } 225// if((defaultChannelsMask & 8)!= 0) 226// { 227// dstValue . a = 1; 228// } 229// } 230// 231// dst = dstValue; 232// } 233