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