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