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.00000016.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000016[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xed,0x4f,0x97,0x65, 14 0x14,0xc7,0xaf,0xeb,0xfe,0xc1,0xef,0xf7,0x03,0xe4,0xc1,0x50,0x51,0xb1,0xc0,0xb0, 15 0x8c,0x21,0x02,0x4b,0x1b,0x5b,0xe5,0x48,0x4d,0x7a,0xa0,0xb0,0xe2,0x25,0x5b,0x6b, 16 0xeb,0x4d,0x2f,0xf0,0x4d,0xbd,0x71,0x6b,0xad,0xb5,0xac,0x8d,0x77,0xfe,0x0b,0x3e, 17 0x64,0xad,0x91,0xd5,0xb2,0xd2,0x7c,0x78,0xa9,0x56,0xae,0x46,0xc5,0x6a,0x54,0x2c, 18 0x5e,0x55,0xac,0xa5,0x0b,0x82,0x0c,0x59,0xe7,0xdc,0xd7,0xe7,0xc4,0x19,0xb5,0x62, 19 0xbb,0x76,0xdf,0xd7,0xf7,0x3c,0x7d,0xbf,0xe7,0x1c,0x6e,0x28,0x64,0x6d,0xa5,0x10, 20 0x62,0xa8,0x0e,0xe5,0xb0,0x3f,0x86,0xfc,0x67,0x75,0xc8,0x82,0xbe,0xd6,0x84,0x62, 21 0xfe,0xec,0x1f,0x78,0x62,0x60,0xfb,0xb3,0xcf,0x3d,0xbd,0x7d,0xc7,0xce,0x6e,0xb5, 22 0xd7,0x85,0x42,0xee,0xa7,0xb6,0xfa,0x50,0x0a,0x15,0xf2,0xd4,0x33,0xf2,0xd4,0x33, 23 0x07,0x14,0x3f,0x2e,0xe7,0x82,0x9c,0x06,0xf1,0x53,0x5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,0x5d,0xc2,0xe4,0x02,0xb6,0x1b,0x32,0xb5,0x5e,0x39,0x7f,0x01,0xb0,0xe3, 91 0x58,0xe5,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 itexture2DArray src; 102// layout(location = 0)out uvec4 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// uvec4 transformSrcValue(ivec4 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// uvec4 dstValue = uvec4(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// ivec4 srcValue = texelFetch(src, ivec3(params . srcOffset + srcSubImageCoords, params . srcLayer), params . srcMip); 198// 199// dst = transformSrcValue(srcValue); 200// } 201