// // Copyright (c) 2014 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. // // copyimage.inl: Defines image copying functions namespace angle { template inline void ReadColor(const uint8_t *source, uint8_t *dest) { sourceType::readColor(reinterpret_cast*>(dest), reinterpret_cast(source)); } template inline void WriteColor(const uint8_t *source, uint8_t *dest) { destType::writeColor(reinterpret_cast(dest), reinterpret_cast*>(source)); } template inline void CopyPixel(const uint8_t *source, uint8_t *dest) { colorDataType temp; ReadColor(source, &temp); WriteColor(&temp, dest); } } // namespace angle