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