#include "common/mathutil.h"
#include "image_util/copyimage.h"
#include "test_utils/ANGLETest.h"
#include "test_utils/gl_raii.h"
usingnamespaceangle;
namespace
{
class TextureUploadFormatTest : public ANGLETest<>
{ … };
struct TexFormat final
{ … };
template <const uint8_t bits>
constexpr uint32_t EncodeNormUint(const float val)
{ … }
}
namespace
{
template <typename DestT, typename SrcT, size_t SrcN>
void ZeroAndCopy(DestT &dest, const SrcT (&src)[SrcN])
{ … }
std::string EnumStr(const GLenum v)
{ … }
template <typename ColorT, typename DestT>
void EncodeThenZeroAndCopy(DestT &dest, const float srcVals[4])
{ … }
}
TEST_P(TextureUploadFormatTest, All)
{ … }
ANGLE_INSTANTIATE_TEST_ES2_AND_ES3(…);