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