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