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