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.00000000.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000000[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x58,0x5b,0x6c,0x55,0x45, 14 0x14,0x3d,0x7b,0x5a,0x0a,0xa5,0x40,0x0b,0x22,0xf2,0x90,0x06,0x68,0x51,0x10,0x52, 15 0x81,0x14,0x41,0x4a,0xcb,0x4b,0xa8,0xd2,0x96,0x0a,0x0d,0x01,0x41,0x9e,0x05,0x14, 16 0x22,0x85,0x20,0x18,0xe0,0xc3,0xf0,0xf2,0x11,0x13,0x49,0x50,0xf8,0x00,0x91,0x18, 17 0x34,0x42,0x50,0x9b,0x46,0x09,0x10,0x63,0x8c,0x06,0x11,0xc5,0x1f,0x90,0x40,0x54, 18 0xea,0x07,0x20,0x02,0x2a,0x7c,0x81,0xbc,0xc1,0x59,0xdd,0x6b,0x73,0x37,0x37,0x1a, 19 0x6f,0x3a,0x3d,0x77,0xd6,0x7e,0xad,0xbd,0x66,0xe6,0x9c,0xd3,0x66,0x84,0x82,0xe6, 20 0x49,0x22,0x49,0xcb,0xa4,0x45,0x32,0x37,0x24,0x4d,0x9f,0xb6,0x49,0x88,0x48,0x92, 21 0xe4,0x24,0x59,0x4d,0xd7,0xf2,0xca,0x9a,0xca,0xa2,0x17,0x97,0xce,0x29,0x2a,0x1e, 22 0xd8,0x0f,0xf6,0x36,0x49,0x46,0x93,0x1f,0x6c,0xb9,0x49,0xf3,0x24,0x33,0x5e,0x31, 23 0x16,0xce,0x9a,0x5f,0x07,0xfc,0x06,0x7c,0xa2,0x31,0x2f,0xfa,0x01,0x8f,0x05,0x92, 24 0x27,0x93,0x66,0xc9,0x28,0x4d,0x9f,0x14,0xf0,0x6a,0x98,0x10,0x6b,0xe1,0xb0,0x40, 25 0x2c,0xcf,0x61,0x19,0xc4,0xda,0x3b,0x2c,0x93,0x58,0x47,0x87,0x35,0x23,0xf6,0xa0, 26 0xc3,0xb2,0x88,0x75,0x73,0x58,0x73,0x62,0x85,0x0e,0x6b,0x41,0xac,0x97,0xc3,0xb2, 27 0x89,0xf5,0x75,0x58,0x4b,0x62,0xfd,0x1c,0x96,0x43,0xac,0xd8,0x61,0xad,0x88,0x0d, 28 0x76,0x58,0x6b,0x62,0x43,0x1d,0xd6,0x86,0xd8,0x70,0xe8,0x1d,0x3b,0x35,0x0d,0xca, 29 0x63,0x87,0x37,0x98,0x3b,0x97,0xf3,0xcc,0x28,0x58,0x0f,0x6a,0x68,0xf3,0xee,0x6e, 30 0x0e,0xed,0xf3,0x39,0xbf,0x2f,0x66,0x41,0x9e,0xee,0x31,0x67,0x06,0x73,0x76,0x88, 31 0xdf,0xb2,0xa8,0xc5,0xfd,0xd1,0x3f,0x97,0xdf,0xb1,0x0e,0x0f,0xc4,0x79,0x1e,0x6b, 32 0x05,0xce,0x3b,0x50,0x3f,0x68,0xdd,0x27,0xfe,0xc6,0xf7,0xae,0xd0,0xb7,0xa8,0xaa, 33 0xa4,0x7d,0xf4,0xca,0x77,0x38,0x7a,0x98,0xb0,0x6f,0xdc,0x08,0x9b,0x43,0xc7,0x89, 34 0x13,0x8f,0x95,0xd9,0xfc,0x91,0x38,0x4a,0x5b,0xbe,0x36,0xcc,0xe6,0xd0,0xb4,0xbe, 35 0x7c,0x56,0xa9,0xcd,0xfb,0xc7,0xf1,0x7b,0x7d,0xcf,0xbb,0x73,0x68,0xb4,0x65,0x73, 36 0xa7,0xe1,0xe0,0x39,0x92,0x3c,0xf1,0xc9,0x8f,0xbb,0x74,0x14,0xf7,0x87,0xf1,0xb5, 37 0x31,0xf2,0x7f,0x86,0xf9,0x74,0x8b,0x39,0x9f,0xe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xbe,0x8a,0x7b,0x2e,0x5b,0x14,0x43,0x5e,0xc4,0xe1, 65 0xdc,0xb7,0x64,0xdc,0x49,0xc6,0x41,0xd3,0x1c,0x51,0x7c,0x46,0xe4,0x81,0xb3,0xd0, 66 0x8a,0xf5,0x10,0x1f,0x68,0x37,0xad,0xc6,0x32,0xbe,0xce,0x69,0x55,0x21,0x8a,0x9b, 67 0x56,0x95,0xa2,0x98,0x69,0x35,0xc5,0x69,0x05,0x5b,0x55,0x1c,0x53,0xd8,0x7f,0x15, 68 0xd7,0x1b,0xe7,0xb5,0x5a,0xb4,0x76,0xc2,0xb8,0x43,0xfc,0x7e,0x23,0x7e,0x47,0xae, 69 0x2f,0x19,0x83,0xeb,0x17,0xac,0xf5,0x95,0x68,0x5c,0x57,0xc6,0x7c,0xef,0x6a,0xc1, 70 0xf6,0x75,0x1c,0xdf,0x30,0x0e,0xd7,0x56,0xb1,0x47,0xd4,0xfa,0x56,0x74,0x3d,0x3a, 71 0xb3,0x2e,0x9e,0x71,0xaf,0x90,0xc7,0x41,0x51,0x3b,0x9e,0x73,0x6b,0x89,0x7d,0x27, 72 0x8a,0xf7,0xe5,0xfa,0x1d,0x62,0x4e,0xe4,0xb7,0xb8,0xfd,0xe4,0x52,0x90,0xe6,0x03, 73 0x4e,0x77,0x62,0xb5,0xab,0xc4,0x2e,0x93,0x43,0x75,0xd0,0xbc,0xe0,0xb5,0x9f,0x5c, 74 0xb1,0xaf,0xb1,0x06,0x45,0x41,0xed,0xa6,0x87,0x69,0x54,0x43,0x8d,0x84,0xfd,0x36, 75 0xa6,0x69,0x74,0x98,0x35,0x0f,0x3b,0x8d,0x7e,0x14,0x8d,0x33,0x8d,0x4e,0x38,0x8d, 76 0x60,0x3b,0x1a,0xc7,0x71,0xc6,0x1d,0x77,0x1a,0xfd,0xe4,0x34,0xaa,0x49,0xd3,0xe8, 77 0x67,0x51,0xbb,0xd7,0xe8,0x17,0x51,0xdc,0x34,0x6a,0x64,0xce,0xa3,0x4e,0xa3,0x63, 78 0xe4,0x52,0x90,0xe6,0x73,0xc2,0x69,0xd4,0xe8,0x34,0x1a,0x1f,0x34,0x2f,0x78,0x1d, 79 0x23,0x57,0xd3,0xa8,0x7f,0x50,0x7b,0x11,0xcf,0x96,0x69,0x34,0x89,0x1a,0x05,0xf6, 80 0x7b,0x31,0x4d,0xa3,0x53,0xac,0x79,0xca,0x69,0xf4,0x9b,0x68,0x9c,0x69,0x74,0xc1, 81 0x69,0x04,0xdb,0x99,0x38,0xce,0x31,0xee,0x9c,0xd3,0xe8,0x0f,0xa7,0xd1,0xa4,0x34, 82 0x8d,0xfe,0x14,0xb5,0x7b,0x8d,0xfe,0x12,0xc5,0x4d,0xa3,0x8b,0xcc,0x79,0xc6,0x69, 83 0x74,0x96,0x5c,0x0a,0xd2,0x7c,0x2e,0x38,0x8d,0x2e,0x3a,0x8d,0x6a,0x82,0xe6,0x05, 84 0xaf,0xb3,0xe4,0x6a,0x1a,0x15,0x07,0xb5,0x43,0xab,0xc0,0x7c,0x76,0xf6,0xa6,0x30, 85 0x07,0xfc,0x26,0x72,0xaf,0xe1,0x7e,0x84,0x98,0x8b,0xee,0xcc,0x4f,0xe5,0x99,0x5f, 86 0xe7,0xce,0xfc,0xb3,0xa2,0xb8,0x9d,0xf9,0x69,0xa2,0x98,0x9d,0xf9,0x95,0x4e,0x3f, 87 0xd8,0xa6,0xc7,0x31,0x8f,0x75,0xe7,0xb9,0xdc,0xcf,0x31,0xf7,0x46,0x97,0xfb,0x79, 88 0x51,0xdc,0x72,0xcf,0x17,0xc5,0x2c,0x77,0x9d,0xcb,0x0d,0xdb,0x82,0x38,0xea,0x98, 89 0x7b,0x81,0xbb,0x9f,0xbc,0x20,0xda,0x17,0x9e,0xf7,0x9f,0x33,0xd7,0x42,0x51,0x7c, 90 0x2b,0xb5,0xb0,0xb8,0x3a,0x6a,0x01,0x9f,0x45,0xa2,0x35,0xc1,0x73,0x21,0xf3,0xa3, 91 0xee,0x0a,0x57,0x17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e7,0x8e,0xbb,0x67,0xe0,0xc7,0xee, 105 0x19,0xcf,0x04,0xcd,0x0f,0x5e,0xd7,0xc8,0xd5,0xee,0x19,0x43,0x82,0xda,0x4d,0x0f, 106 0xd3,0xe8,0x0d,0x6a,0x64,0xcf,0x9e,0x76,0x69,0x1a,0x65,0xb1,0x26,0xae,0xa6,0x51, 107 0x8b,0xa0,0x71,0xa6,0x51,0xdb,0x90,0xd2,0x08,0xb6,0x6c,0xf4,0xcb,0x38,0x5c,0x4d, 108 0xa3,0x36,0x8c,0xf3,0x1a,0xe5,0x06,0xc5,0xbd,0x46,0x79,0x21,0xa5,0x11,0xec,0xa6, 109 0x51,0x3b,0xe6,0x44,0x7e,0x8b,0xcf,0x61,0x4e,0xd3,0xc8,0x7c,0xc0,0xc9,0x34,0x6a, 110 0xe7,0x34,0x9a,0x1a,0x34,0x3f,0x78,0xe5,0x90,0xab,0x69,0x54,0x1a,0xd4,0x3e,0x24, 111 0xed,0xd9,0xb3,0x9e,0x1a,0xd9,0xb3,0xa7,0x30,0x4d,0xa3,0x8e,0xac,0xd9,0xd1,0x69, 112 0xd4,0x39,0x68,0x9c,0x69,0x54,0xe0,0x34,0x82,0xad,0x4b,0x1c,0xf9,0x8c,0xcb,0x77, 113 0x1a,0x75,0x63,0x9c,0xd7,0xa8,0x7b,0x50,0xdc,0x6b,0xd4,0xc3,0x69,0xd4,0xdd,0x69, 114 0x54,0xc8,0x9c,0x5d,0x9c,0x46,0x5d,0x99,0xd3,0x34,0x32,0x9f,0x02,0xa7,0x51,0xa1, 115 0xd3,0x68,0x5a,0xd0,0xfc,0xe0,0xd5,0x95,0x5c,0x4d,0xa3,0xe1,0x41,0xed,0xa5,0xee, 116 0xd9,0x63,0x67,0x6f,0x83,0x3b,0xf3,0x33,0xb8,0xd7,0x70,0x1f,0x40,0x4c,0x61,0x48, 117 0x9d,0xf9,0xb7,0x78,0xe6,0x0f,0xb8,0x33,0xff,0xb6,0x28,0x6e,0x67,0x7e,0xa3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8b,0xdd,0xeb,0xea,0xd4,0x06,0xad,0x85,0xda,0x88,0xd9,0xc6,0x3a,0xfb,0xe8, 132 0xbb,0xc9,0x3d,0x47,0x37,0x33,0x1f,0x86,0xfd,0x2f,0x36,0xb8,0xe7,0xa8,0xc5,0xec, 133 0x73,0xf9,0x67,0x07,0xad,0x81,0x9a,0x9b,0x79,0x06,0xca,0x62,0x04,0xfe,0x67,0x02, 134 0xdb,0xad,0xb8,0x4b,0x06,0xc7,0xf1,0x0f,0xf6,0x04,0xe8,0x0b,0x3c,0x16,0x00,0x00 135}; 136 137// Generated from: 138// 139// #version 450 core 140// 141// #extension GL_GOOGLE_include_directive : require 142// #extension GL_EXT_samplerless_texture_functions : require 143// 144// layout(set = 0, binding = 0)uniform texture2D src; 145// layout(location = 0)out vec4 dst; 146// 147// #line 1 "shaders/src/ImageCopy.inc" 148// 149// layout(push_constant)uniform PushConstants { 150// 151// ivec2 srcOffset; 152// ivec2 dstOffset; 153// int srcMip; 154// int srcLayer; 155// int srcSampleCount; 156// 157// bool flipX; 158// bool flipY; 159// 160// bool premultiplyAlpha; 161// bool unmultiplyAlpha; 162// 163// bool dstHasLuminance; 164// bool dstIsAlpha; 165// 166// bool srcIsSRGB; 167// bool dstIsSRGB; 168// 169// int dstDefaultChannelsMask; 170// bool rotateXY; 171// } params; 172// 173// float linearToSRGB(float linear) 174// { 175// 176// if(linear <= 0.0031308) 177// { 178// return linear * 12.92; 179// } 180// else 181// { 182// return pow(linear,(1.0f / 2.4f))* 1.055f - 0.055f; 183// } 184// } 185// 186// float sRGBToLinear(float sRGB) 187// { 188// 189// if(sRGB <= 0.04045) 190// { 191// return sRGB / 12.92; 192// } 193// else 194// { 195// return pow((sRGB + 0.055f)/ 1.055f, 2.4f); 196// } 197// } 198// 199// ivec2 transformImageCoords(ivec2 glFragCoords) 200// { 201// ivec2 imageCoordsOut = glFragCoords - params . dstOffset; 202// 203// if(params . flipX) 204// { 205// imageCoordsOut . x = - imageCoordsOut . x; 206// } 207// if(params . flipY) 208// { 209// imageCoordsOut . y = - imageCoordsOut . y; 210// } 211// if(params . rotateXY) 212// { 213// imageCoordsOut . xy = imageCoordsOut . yx; 214// } 215// 216// return imageCoordsOut; 217// } 218// 219// vec4 transformSrcValue(vec4 srcValue) 220// { 221// 222// if(params . srcIsSRGB) 223// { 224// 225// srcValue . r = linearToSRGB(srcValue . r); 226// srcValue . g = linearToSRGB(srcValue . g); 227// srcValue . b = linearToSRGB(srcValue . b); 228// } 229// 230// if(params . premultiplyAlpha) 231// { 232// srcValue . rgb *= srcValue . a; 233// } 234// else if(params . unmultiplyAlpha && srcValue . a > 0) 235// { 236// srcValue . rgb /= srcValue . a; 237// } 238// 239// vec4 dstValue = vec4(srcValue); 240// 241// if(params . dstIsSRGB) 242// { 243// 244// dstValue . r = sRGBToLinear(dstValue . r); 245// dstValue . g = sRGBToLinear(dstValue . g); 246// dstValue . b = sRGBToLinear(dstValue . b); 247// } 248// 249// if(params . dstHasLuminance) 250// { 251// dstValue . rg = dstValue . ra; 252// } 253// else if(params . dstIsAlpha) 254// { 255// dstValue . r = dstValue . a; 256// } 257// else 258// { 259// int defaultChannelsMask = params . dstDefaultChannelsMask; 260// if((defaultChannelsMask & 2)!= 0) 261// { 262// dstValue . g = 0; 263// } 264// if((defaultChannelsMask & 4)!= 0) 265// { 266// dstValue . b = 0; 267// } 268// if((defaultChannelsMask & 8)!= 0) 269// { 270// dstValue . a = 1; 271// } 272// } 273// 274// return dstValue; 275// } 276// #line 56 "shaders/src/ImageCopy.frag" 277// 278// void main() 279// { 280// ivec2 srcSubImageCoords = transformImageCoords(ivec2(gl_FragCoord . xy)); 281// 282// vec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip); 283// 284// dst = transformSrcValue(srcValue); 285// } 286