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.00000027.inc: 9// Pre-generated shader for the ANGLE Vulkan back-end. 10 11#pragma once 12constexpr uint8_t kImageCopy_frag_00000027[] = { 13 0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0xfb,0x4f,0xd7,0x65, 14 0x14,0xc7,0x9f,0xef,0x1d,0x21,0x2e,0x02,0x4a,0x54,0x98,0x17,0xd8,0x6c,0x18,0x7c, 15 0x57,0x64,0x04,0xe9,0x86,0x19,0xba,0xb2,0x10,0x4d,0xa9,0xe0,0x87,0x5c,0x38,0xa1, 16 0xe2,0xdb,0x85,0xef,0x5a,0xba,0x6c,0x41,0x0a,0x6d,0x69,0x05,0x6b,0xcc,0x5a,0xc2, 17 0x56,0xf0,0x43,0xc2,0xf4,0x87,0xb6,0x7e,0x6a,0xad,0x95,0xcd,0xb4,0xcb,0x7f,0xd3, 18 0xba,0x6c,0x6d,0x9d,0xf3,0x7c,0x5f,0xc7,0x9d,0xbe,0xab,0xc9,0xf6,0xec,0xc3,0xf3, 19 0x3e,0xb7,0xf7,0xfb,0x9c,0xe7,0x79,0x20,0x95,0xdc,0x96,0x0b,0x21,0x11,0x2a,0x43, 20 0x45,0xf8,0x35,0x94,0x7e,0xd6,0x87,0xa4,0x20,0xa5,0xef,0x7d,0xf2,0xad,0x0a,0xd9, 21 0xb8,0xdf,0x77,0xe0,0xf0,0x81,0x8e,0xc9,0xe2,0x68,0x47,0xd7,0x03,0x79,0xf5,0xab, 22 0x09,0xa9,0xe8,0xaf,0xb6,0xda,0x90,0x0b,0x69,0xf9,0xea,0x9a,0x38,0x36,0x5e,0x50, 23 0xbc,0x5a,0xd6,0x15,0x59,0x75,0xe2,0xa7,0x78,0x4e,0x73,0xc8,0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ef,0xb0,0x72,0xfc,0xda,0xe1,0xf6,0xc6,0xcd,0x13,0xbb,0xe0,0xde,0x89,0x8f, 78 0xe1,0x75,0xc1,0xbd,0x13,0x9f,0x80,0x5f,0x23,0xff,0xa7,0x60,0x83,0x8e,0xeb,0x45, 79 0xf0,0x7e,0xb8,0x2e,0x39,0xae,0x6a,0x5b,0x94,0xb5,0x44,0xbd,0x45,0xc7,0xeb,0x1b, 80 0x62,0xa6,0xdc,0xdf,0x07,0xf3,0x5b,0x62,0xd6,0xea,0x77,0x1d,0x9f,0x05,0x62,0x16, 81 0x1d,0x9f,0xcf,0xe0,0xd3,0xe2,0xf8,0x7c,0x0e,0x6e,0x7c,0x56,0x1c,0x1f,0xb5,0x2d, 82 0xcb,0x5a,0xa1,0xce,0xb2,0xe3,0xf3,0x2d,0x31,0xd7,0x99,0xa1,0xf2,0x31,0xbf,0x15, 83 0xc7,0xe7,0x06,0x3e,0x4b,0xc4,0x2c,0x3b,0x3e,0x5f,0xc0,0x67,0xda,0xf1,0xb9,0x04, 84 0x6e,0x7c,0xd6,0x1c,0x9f,0x4b,0xd1,0x2f,0x44,0x4c,0xeb,0xac,0x3a,0x3e,0xdf,0xf1, 85 0x7f,0xcb,0x0d,0x77,0x9e,0xcc,0x6f,0xcd,0xf1,0xf9,0x05,0x9f,0x15,0x62,0x56,0xcb, 86 0x66,0x3c,0xef,0x7c,0x7f,0xe6,0x3c,0xcc,0x11,0xb7,0x56,0x76,0x4e,0x67,0x9d,0xef, 87 0x4f,0x9c,0xef,0x19,0xe2,0x34,0xcf,0x6e,0x61,0x72,0x05,0xdb,0xdf,0x32,0xb5,0x6e, 88 0x59,0xff,0x00,0xf8,0x5e,0x0d,0x78,0x20,0x0e,0x00,0x00 89}; 90 91// Generated from: 92// 93// #version 450 core 94// 95// #extension GL_EXT_samplerless_texture_functions : require 96// 97// layout(set = 0, binding = 0)uniform usampler2D src; 98// layout(location = 0)out ivec4 dst; 99// 100// layout(push_constant)uniform PushConstants { 101// 102// ivec2 srcOffset; 103// ivec2 dstOffset; 104// int srcMip; 105// int srcLayer; 106// 107// bool flipX; 108// bool flipY; 109// 110// bool premultiplyAlpha; 111// bool unmultiplyAlpha; 112// 113// bool dstHasLuminance; 114// bool dstIsAlpha; 115// 116// bool srcIsSRGB; 117// bool dstIsSRGB; 118// 119// int dstDefaultChannelsMask; 120// bool rotateXY; 121// } params; 122// 123// void main() 124// { 125// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset; 126// 127// ivec2 srcSubImageCoords = dstSubImageCoords; 128// 129// if(params . flipX) 130// { 131// srcSubImageCoords . x = - srcSubImageCoords . x; 132// } 133// if(params . flipY) 134// { 135// srcSubImageCoords . y = - srcSubImageCoords . y; 136// } 137// if(params . rotateXY) 138// { 139// srcSubImageCoords . xy = srcSubImageCoords . yx; 140// } 141// 142// uvec4 srcValue = texture( 143// src, vec2(params . srcOffset + srcSubImageCoords)/ textureSize(src, 0), params . srcMip); 144// 145// if(params . premultiplyAlpha) 146// { 147// srcValue . rgb *= srcValue . a; 148// } 149// else if(params . unmultiplyAlpha && srcValue . a > 0) 150// { 151// srcValue . rgb /= srcValue . a; 152// } 153// 154// ivec4 dstValue = ivec4(srcValue); 155// 156// if(params . dstHasLuminance) 157// { 158// dstValue . rg = dstValue . ra; 159// } 160// else if(params . dstIsAlpha) 161// { 162// dstValue . r = dstValue . a; 163// } 164// else 165// { 166// int defaultChannelsMask = params . dstDefaultChannelsMask; 167// if((defaultChannelsMask & 2)!= 0) 168// { 169// dstValue . g = 0; 170// } 171// if((defaultChannelsMask & 4)!= 0) 172// { 173// dstValue . b = 0; 174// } 175// if((defaultChannelsMask & 8)!= 0) 176// { 177// dstValue . a = 1; 178// } 179// } 180// 181// dst = dstValue; 182// } 183