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