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.00000021.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000021[] = { 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,0xa4,0x74,0x4d,0x84,0xb5,0x86,0x8d, 15 0x81,0x40,0x2a,0x8a,0xca,0x3c,0x50,0x0b,0x03,0x74,0x54,0x6e,0x1e,0xd2,0x39,0x3b, 16 0x19,0x2b,0x62,0xe5,0xc4,0x55,0xa3,0x9c,0xce,0x92,0x5f,0x2e,0xa6,0x33,0xf5,0x97, 17 0x8b,0xe9,0x2c,0x99,0xb5,0x08,0xb6,0x66,0x7f,0x72,0xce,0x99,0x18,0x3a,0x87,0xa8, 18 0x69,0x07,0xcd,0xc3,0xcf,0xd6,0x69,0x5a,0xcf,0xf5,0xde,0xd7,0x1d,0xf7,0xbe,0xe5, 19 0xfa,0xb6,0x87,0xf7,0x7d,0xae,0xfb,0x74,0xdd,0xd7,0xf3,0x3c,0xef,0xfb,0x92,0x4c, 20 0x14,0x65,0x46,0x91,0x44,0xd9,0x51,0x56,0x74,0x45,0xa2,0xf8,0x97,0x1b,0x25,0x22, 21 0xdc,0x8e,0x8e,0x32,0xe2,0x6b,0x5d,0xfd,0xb2,0xfa,0xd2,0xd7,0xdb,0xd6,0x95,0x56, 22 0x56,0x95,0xc1,0x3e,0x36,0x4a,0xc6,0x7e,0xb0,0x8d,0x8b,0x32,0xa3,0xb4,0x70,0xc5, 23 0x78,0x65,0xcd,0x8b,0x2d,0xc0,0xcf,0x84,0x71,0x3b,0x8c,0xf1,0xc1,0x0f,0x78,0x28, 24 0x10,0x3d,0x1e,0xa5,0x47,0xe5,0x9a,0x3e,0x2a,0xe2,0xd5,0x30,0x21,0x96,0xe5,0xb0, 25 0x04,0xb1,0xf1,0x0e,0x4b,0x12,0x9b,0xe0,0xb0,0x34,0x62,0x05,0x0e,0x4b,0x27,0x36, 26 0xd9,0x61,0x19,0xc4,0xa6,0x38,0x2c,0x93,0x58,0xb1,0xc3,0xb2,0x88,0x3d,0xe2,0xb0, 27 0x51,0xc4,0x1e,0x75,0x58,0x36,0xb1,0x32,0x87,0x8d,0x26,0x56,0xe9,0xb0,0x1c,0x62, 28 0x33,0x1d,0x36,0x86,0xd8,0x1c,0x87,0x8d,0x25,0x36,0x1f,0x7a,0x87,0x4e,0x4d,0x83, 29 0xba,0xd0,0xe1,0x19,0xe6,0x1e,0xc7,0xf9,0x70,0xb8,0x4e,0xa5,0x86,0x36,0x2f,0x74, 30 0x73,0x68,0xff,0x10,0xe7,0x79,0x21,0x4b,0x22,0xb6,0x27,0x63,0xfd,0x70,0x7f,0x7f, 31 0xb8,0xcb,0xa0,0x16,0xf9,0xc1,0x3f,0x87,0xf7,0x58,0x87,0x89,0x61,0x3e,0x86,0xbc, 32 0x13,0x9c,0xe7,0x51,0xbf,0x34,0xce,0xf3,0x69,0xc7,0x7c,0x5a,0xf8,0x0b,0xdb,0x24, 33 0xe8,0x5d,0xba,0x64,0xf6,0x84,0x10,0x35,0xd9,0xe1,0xe0,0xb5,0xf4,0x8b,0xa7,0x6a, 34 0x6d,0xfe,0x70,0x18,0xcd,0xcd,0x67,0xe7,0xda,0x1c,0x3a,0xd7,0x64,0x6f,0x9d,0x67, 35 0xf3,0x92,0x30,0x0e,0xd7,0xad,0xa9,0x01,0xaf,0x32,0xf2,0x8a,0xe2,0x7e,0x72,0xff, 36 0xd5,0xce,0xf8,0xd9,0x28,0xfb,0x9f,0x61,0x3e,0x53,0x42,0xce,0xe9,0x5c,0x4f,0xe4, 37 0x9a,0xcd,0x79,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0x6a,0xf7,0x1a,0xed,0x15,0xc5,0x4d,0xa3,0xfd,0xcc,0xd9,0xe5,0x34,0xda,0x45, 78 0x2e,0x85,0x29,0x3e,0xfb,0x9c,0x46,0xfb,0x9d,0x46,0x83,0xa2,0x79,0xc1,0x6b,0x17, 79 0xb9,0x9a,0x46,0x5f,0x89,0xda,0xfb,0xc9,0xd3,0x34,0x2a,0xa5,0x46,0x09,0xf6,0xdb, 80 0x93,0xa2,0xd1,0x01,0xd6,0x3c,0xe0,0x34,0xfa,0x58,0x34,0xce,0x34,0x3a,0xe2,0x34, 81 0x82,0xad,0x3b,0x8c,0x43,0x8c,0x3b,0xe4,0x34,0x3a,0xec,0x34,0x2a,0x4d,0xd1,0xe8, 82 0x13,0x51,0xbb,0xd7,0xe8,0x53,0x51,0xdc,0x34,0xea,0x61,0xce,0x6e,0xa7,0xd1,0x41, 83 0x72,0x29,0x4c,0xf1,0x39,0xe2,0x34,0xea,0x71,0x1a,0x9d,0x13,0xcd,0x0b,0x5e,0x07, 84 0xc9,0xd5,0x34,0xfa,0x5a,0xd4,0x0e,0xad,0x12,0xcc,0x67,0x67,0xaf,0x9c,0x39,0xe0, 85 0x77,0x9e,0x9a,0xe1,0x99,0x87,0x98,0x1e,0xf7,0x0c,0x9e,0xce,0x33,0xdf,0xea,0xce, 86 0x7c,0x85,0x28,0x6e,0x67,0xbe,0x52,0x14,0xb3,0x33,0xdf,0xe4,0xf4,0x83,0xad,0x0a, 87 0x36,0xd6,0xad,0x71,0xb9,0xe7,0x32,0x77,0x87,0xcb,0x3d,0x4f,0x14,0xb7,0xdc,0xf3, 88 0x45,0x31,0xcb,0xbd,0xc8,0xe5,0x86,0xad,0x36,0x8c,0x45,0xcc,0x5d,0xeb,0x9e,0x27, 89 0x0b,0x44,0xfb,0xc2,0x37,0xc5,0x97,0xcc,0xb5,0x50,0x14,0xdf,0x4e,0x2d,0x2c,0x6e, 90 0x11,0xb5,0x80,0xcf,0x62,0xd1,0x9a,0xe0,0xb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fb,0x58,0xaf, 104 0xc5,0xd5,0x83,0x6d,0x43,0x18,0x2d,0xac,0xb7,0x81,0xcf,0x05,0xe8,0x76,0x82,0x31, 105 0xcd,0xee,0xdb,0xcc,0xfc,0x5a,0xb8,0x1e,0xf0,0x1b,0x16,0xf5,0x01,0xd7,0x13,0xcc, 106 0x67,0x7c,0x5e,0x25,0x9f,0x63,0x8e,0xcf,0x6b,0xa2,0xb8,0xf1,0x69,0x73,0x7c,0x60, 107 0x6b,0x0d,0xa3,0x8d,0x75,0x5a,0x1d,0x9f,0x93,0x8c,0x19,0x76,0xcf,0x29,0xf3,0x6b, 108 0x73,0x7c,0x2e,0x8a,0xfa,0x80,0xe3,0x49,0xe6,0x33,0x3e,0x6f,0x90,0x4f,0x87,0xe3, 109 0xf3,0xa6,0x28,0x6e,0x7c,0x36,0x39,0x3e,0xb0,0x6d,0x0c,0x63,0x13,0xeb,0x6c,0x74, 110 0x7c,0x4e,0x89,0xfe,0xcf,0x70,0x51,0x46,0xf6,0xab,0xf9,0x6d,0x72,0x7c,0xbe,0x17, 111 0xf5,0x01,0xc7,0x53,0xcc,0x07,0xdf,0x76,0xfa,0xae,0x75,0xdf,0xcc,0xeb,0xa8,0x25, 112 0xf2,0x59,0x9d,0xe3,0x32,0x82,0xdb,0xf7,0xa7,0xc5,0xb6,0xbb,0x3a,0x97,0x45,0x6b, 113 0xa1,0xf6,0x71,0xee,0x23,0xf8,0x6e,0xa6,0xef,0x72,0x9e,0x3b,0xf8,0xae,0x64,0xbe, 114 0x66,0x9e,0xbb,0x4c,0x9e,0x55,0xeb,0xc3,0x62,0x36,0xbb,0xfc,0x97,0x44,0x6b,0xa0, 115 0xe6,0x4a,0x9e,0x81,0xb9,0x21,0xe2,0x36,0x6d,0x77,0xc2,0x2e,0x99,0x19,0xc6,0x3f, 116 0x1a,0x7f,0x1c,0x37,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 texture3D 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