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,0x8d,0x77,0xce,0x65, 14 0x18,0xc7,0x7f,0x7b,0x9e,0x67,0xcf,0xc3,0xcc,0x4c,0x16,0xd2,0x74,0xb6,0x91,0xd4, 15 0x34,0xab,0xe6,0x75,0x1e,0x1a,0x65,0x94,0x11,0xb3,0x48,0x4a,0x2b,0xc5,0xd2,0x14, 16 0x53,0x56,0x31,0x4c,0xb2,0x25,0x09,0x15,0xa5,0x28,0x11,0x59,0xb4,0x8a,0x2c,0x54, 17 0x54,0x4c,0x6f,0xa8,0x4c,0xe5,0xad,0xfe,0x89,0x4e,0x2f,0xe7,0xf4,0x72,0x5f,0xbf, 18 0x7d,0xae,0xa7,0xeb,0xfc,0x8e,0x53,0x3b,0xe7,0x3e,0xbf,0xe7,0xfa,0x5e,0xd7,0xfd, 19 0xbd,0xbf,0xd7,0x75,0xdd,0xf7,0xfd,0x7b,0x9e,0x85,0x43,0x3d,0x62,0x9e,0x97,0xe4, 20 0xa5,0x78,0x6d,0xbc,0x9f,0xbd,0xd6,0xbf,0x8e,0x5e,0xc8,0x21,0x9e,0xd7,0xce,0x8b, 21 0xfa,0xcf,0xe2,0x31,0xa5,0x63,0xf2,0xaa,0xe6,0x4d,0xcf,0x2b,0xe8,0x97,0x2f,0xfe, 22 0x34,0x2f,0xec,0xc7,0x89,0xaf,0x83,0x17,0xf3,0x22,0xee,0x29,0xa3,0xb2,0xbc,0x62, 23 0xb6,0xe0,0xbd,0xdc,0x38,0xef,0x46,0xba,0x8b,0x13,0x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0x6f,0xb4,0x7c,0x07,0xae,0x5a, 104 0x5a,0x8c,0x16,0xf1,0x9d,0x74,0xa3,0x05,0xee,0x93,0x46,0xcb,0x29,0xb4,0xe8,0x3b, 105 0xe0,0x94,0xd1,0xa2,0xf1,0x2d,0x46,0xcb,0xf7,0x01,0x2d,0x3f,0x80,0x35,0x1a,0x2d, 106 0x3f,0x82,0xab,0x96,0x33,0x46,0x8b,0xf8,0x4e,0xbb,0x71,0x06,0xee,0xd3,0x46,0xcb, 107 0x59,0xd3,0x77,0xd1,0x72,0x96,0x1a,0x89,0x16,0x8d,0x3f,0x13,0xe8,0xf1,0xa1,0xc0, 108 0x1e,0xdd,0x63,0xf6,0xfc,0x4f,0xf0,0x09,0xd7,0x79,0xec,0x3f,0xdd,0x4d,0x34,0xd0, 109 0x8d,0xfe,0xbc,0x17,0x53,0xd0,0x26,0xbf,0xa1,0x06,0xb8,0xb8,0x18,0xbf,0x97,0x84, 110 0xab,0x9d,0xb9,0xef,0x52,0xc1,0x0f,0x90,0x63,0x07,0xb0,0xf6,0xe4,0xd8,0xd1,0xe4, 111 0xd8,0x81,0xff,0x03,0x75,0x86,0x27,0xdd,0xf0,0x5c,0x04,0xcf,0x32,0xd6,0xcf,0x00, 112 0x93,0xff,0x5d,0xfc,0xe5,0x62,0x33,0x98,0xd3,0xd9,0xcc,0xe9,0xc2,0x9c,0x54,0xa7, 113 0x2e,0xea,0xff,0x5e,0x6e,0xbd,0x4f,0xbb,0xe1,0xeb,0x6a,0xf8,0x2e,0xc5,0xdf,0xcd, 114 0x7f,0x4f,0xb7,0x62,0xdd,0xc1,0x33,0x59,0xa3,0x3b,0x6b,0x88,0xe6,0xbf,0xa9,0xc7, 115 0x3f,0x0b,0x19,0x21,0xaa,0x68,0x13,0x00,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 texture2DArray src; 125// layout(location = 0)out uvec4 dest; 126// 127// layout(push_constant)uniform PushConstants { 128// 129// ivec2 srcOffset; 130// ivec2 destOffset; 131// int srcMip; 132// int srcLayer; 133// 134// bool flipX; 135// bool flipY; 136// 137// bool premultiplyAlpha; 138// bool unmultiplyAlpha; 139// 140// bool destHasLuminance; 141// bool destIsAlpha; 142// 143// bool srcIsSRGB; 144// bool destIsSRGB; 145// 146// int destDefaultChannelsMask; 147// bool rotateXY; 148// } params; 149// 150// float linearToSRGB(float linear) 151// { 152// 153// if(linear <= 0.0031308) 154// { 155// return linear * 12.92; 156// } 157// else 158// { 159// return pow(linear,(1.0f / 2.4f))* 1.055f - 0.055f; 160// } 161// } 162// 163// void main() 164// { 165// ivec2 destSubImageCoords = ivec2(gl_FragCoord . xy)- params . destOffset; 166// 167// ivec2 srcSubImageCoords = destSubImageCoords; 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// vec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); 183// 184// if(params . srcIsSRGB) 185// { 186// 187// srcValue . r = linearToSRGB(srcValue . r); 188// srcValue . g = linearToSRGB(srcValue . g); 189// srcValue . b = linearToSRGB(srcValue . b); 190// } 191// 192// if(params . premultiplyAlpha) 193// { 194// srcValue . rgb *= srcValue . a; 195// } 196// else if(params . unmultiplyAlpha && srcValue . a > 0) 197// { 198// srcValue . rgb /= srcValue . a; 199// } 200// 201// srcValue *= 255.0; 202// 203// uvec4 destValue = uvec4(srcValue); 204// 205// if(params . destHasLuminance) 206// { 207// destValue . rg = destValue . ra; 208// } 209// else if(params . destIsAlpha) 210// { 211// destValue . r = destValue . a; 212// } 213// else 214// { 215// int defaultChannelsMask = params . destDefaultChannelsMask; 216// if((defaultChannelsMask & 2)!= 0) 217// { 218// destValue . g = 0; 219// } 220// if((defaultChannelsMask & 4)!= 0) 221// { 222// destValue . b = 0; 223// } 224// if((defaultChannelsMask & 8)!= 0) 225// { 226// destValue . a = 1; 227// } 228// } 229// 230// dest = destValue; 231// } 232