// // Copyright (c) 2013-2015 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. // // copyvertex.h: Defines vertex buffer copying and conversion functions #ifndef LIBANGLE_RENDERER_COPYVERTEX_H_ #define LIBANGLE_RENDERER_COPYVERTEX_H_ #include "common/mathutil.h" namespace rx { using VertexCopyFunction = void (*)(const uint8_t *input, size_t stride, size_t count, uint8_t *output); // 'alphaDefaultValueBits' gives the default value for the alpha channel (4th component) template void CopyNativeVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); template void Copy8SintTo16SintVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); template void Copy8SnormTo16SnormVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); template void Copy32FixedTo32FVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); template void CopyTo32FVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); template void CopyXYZ10W2ToXYZW32FVertexData(const uint8_t *input, size_t stride, size_t count, uint8_t *output); } // namespace rx #include "copyvertex.inc.h" #endif // LIBANGLE_RENDERER_COPYVERTEX_H_