Hash :
6cb599f9
Author :
Date :
2021-10-06T13:07:27
Vulkan: Change dest to dst for consistency Cleanup only, no functional change. dst aligns better with src. Bug: angleproject:6502 Change-Id: I69821b1aae50a7ce647c7cc876468b6de309eec8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3208514 Commit-Queue: Charlie Lao <cclao@google.com> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_vk_internal_shaders.py.
//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// shaders/gen/ImageCopy.frag.00000005.inc:
// Pre-generated shader for the ANGLE Vulkan back-end.
#pragma once
constexpr uint8_t kImageCopy_frag_00000005[] = {
0x1f,0x8b,0x08,0x00,0x00,0x00,0x00,0x00,0x02,0xff,0x85,0x96,0x8b,0x53,0xd5,0x45,
0x14,0xc7,0x7f,0xdc,0x0b,0x5c,0x04,0x11,0x04,0x94,0x50,0xb1,0x7c,0xd0,0x43,0x0c,
0xb1,0xc0,0x48,0x40,0x25,0x23,0x91,0x30,0x32,0xb0,0x32,0x4d,0xb4,0xb0,0x52,0x92,
0x34,0x28,0x33,0x4a,0x91,0x7c,0x94,0x94,0x8f,0x5e,0x62,0x25,0x5a,0x89,0x5a,0x4d,
0x7f,0x47,0x7f,0x51,0xd3,0x63,0xa6,0x99,0xf6,0xec,0xfd,0x1c,0xe6,0xdb,0x1d,0x2b,
0x66,0x76,0xee,0xdd,0xcf,0x39,0x7b,0xf6,0x7b,0xce,0x9e,0xdd,0x4b,0x3a,0xb5,0x22,
0x93,0x24,0x79,0x49,0x71,0x52,0x94,0xfc,0x98,0x64,0xff,0xe6,0x27,0xa9,0x40,0x92,
0xa4,0x24,0x29,0x8c,0x9f,0x5b,0x7a,0xfa,0x7a,0x1a,0x46,0x46,0x07,0x1b,0x9a,0x9a,
0x1b,0xcd,0x3e,0x2f,0x49,0x47,0x3f,0xb3,0x95,0x25,0x99,0x24,0x3f,0x7c,0xda,0x38,
0xb4,0xef,0xc0,0xb0,0xf1,0xd2,0x30,0x6e,0x87,0x51,0x1e,0xfc,0x8c,0x67,0x2c,0x46,
0xf8,0x56,0x1a,0x63,0xda,0x9a,0x24,0xe9,0x4a,0x0a,0x92,0x4a,0xf6,0x5b,0xc1,0xa7,
0xb3,0x3c,0x58,0x91,0xb0,0x14,0xac,0x5c,0x58,0x1a,0x56,0x25,0x2c,0x1f,0x76,0x97,
0xb0,0x02,0xd8,0x12,0x61,0x85,0xb0,0x7b,0x84,0x65,0x60,0x2b,0x85,0x15,0xc1,0xee,
0x17,0x36,0x07,0xb6,0x5a,0x58,0x31,0xac,0x51,0x58,0x09,0xac,0x49,0xd8,0x5c,0x58,
0x8b,0xb0,0x52,0x58,0x5b,0xac,0x53,0x7a,0x36,0x5f,0xab,0xd9,0xe6,0xf0,0xb9,0x9c,
0xfa,0xf8,0x7c,0x99,0xcc,0xad,0xce,0x4b,0x99,0x57,0x86,0x55,0xa9,0x68,0x4f,0xc7,
0xda,0xd8,0xf7,0x05,0xc1,0xa7,0x90,0x3c,0xad,0xae,0xd5,0x61,0x9e,0x21,0xff,0x54,
0xe4,0xf9,0x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,0xd0,
0xee,0xbf,0x81,0x57,0xe4,0xae,0xbb,0xff,0x94,0x68,0xf9,0x2a,0x47,0xcb,0xd7,0xb0,
0x5a,0xd1,0xf2,0x0d,0xdc,0xb5,0x4c,0x8b,0x16,0xb3,0x5d,0x0d,0x63,0x9a,0xd8,0x57,
0x45,0xcb,0x75,0xb4,0x5c,0x43,0xcb,0x75,0xd1,0xe2,0xfe,0xd3,0xa2,0xe5,0xdb,0x1c,
0x2d,0xdf,0xc1,0xc6,0x44,0xcb,0xf7,0x70,0xd7,0x32,0x23,0x5a,0xcc,0x76,0x23,0x8c,
0x19,0x62,0xdf,0x10,0x2d,0x37,0xe5,0xdc,0x4d,0xcb,0x4d,0xfe,0xaf,0x33,0x2d,0xee,
0x3f,0x93,0x73,0xc6,0x93,0x39,0x3d,0x3a,0x2e,0x3d,0xff,0x03,0xf1,0x2c,0xd6,0x6d,
0xe6,0x7f,0x85,0xdb,0xde,0x12,0xc6,0xdf,0xcd,0x08,0xd4,0x46,0x80,0x0f,0x00,0x00
};
// Generated from:
//
// #version 450 core
//
// #extension GL_EXT_samplerless_texture_functions : require
//
// layout(set = 0, binding = 0)uniform itexture2D src;
// layout(location = 0)out ivec4 dst;
//
// layout(push_constant)uniform PushConstants {
//
// ivec2 srcOffset;
// ivec2 dstOffset;
// int srcMip;
// int srcLayer;
//
// bool flipX;
// bool flipY;
//
// bool premultiplyAlpha;
// bool unmultiplyAlpha;
//
// bool dstHasLuminance;
// bool dstIsAlpha;
//
// bool srcIsSRGB;
// bool dstIsSRGB;
//
// int dstDefaultChannelsMask;
// bool rotateXY;
// } params;
//
// void main()
// {
// ivec2 dstSubImageCoords = ivec2(gl_FragCoord . xy)- params . dstOffset;
//
// ivec2 srcSubImageCoords = dstSubImageCoords;
//
// if(params . flipX)
// {
// srcSubImageCoords . x = - srcSubImageCoords . x;
// }
// if(params . flipY)
// {
// srcSubImageCoords . y = - srcSubImageCoords . y;
// }
// if(params . rotateXY)
// {
// srcSubImageCoords . xy = srcSubImageCoords . yx;
// }
//
// ivec4 srcValue = texelFetch(src, params . srcOffset + srcSubImageCoords, params . srcMip);
//
// if(params . premultiplyAlpha)
// {
// srcValue . rgb *= srcValue . a;
// }
// else if(params . unmultiplyAlpha && srcValue . a > 0)
// {
// srcValue . rgb /= srcValue . a;
// }
//
// ivec4 dstValue = ivec4(srcValue);
//
// if(params . dstHasLuminance)
// {
// dstValue . rg = dstValue . ra;
// }
// else if(params . dstIsAlpha)
// {
// dstValue . r = dstValue . a;
// }
// else
// {
// int defaultChannelsMask = params . dstDefaultChannelsMask;
// if((defaultChannelsMask & 2)!= 0)
// {
// dstValue . g = 0;
// }
// if((defaultChannelsMask & 4)!= 0)
// {
// dstValue . b = 0;
// }
// if((defaultChannelsMask & 8)!= 0)
// {
// dstValue . a = 1;
// }
// }
//
// dst = dstValue;
// }