// // Copyright 2020 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. // // Tests of DXT texture mipmap sizes required by WebGL. #include "test_utils/ANGLETest.h" #include "test_utils/gl_raii.h" #include "media/pixel.inc" usingnamespaceangle; std::array<uint8_t, 72> k12x12DXT1Data = …; class S3TCTextureSizesTest : public ANGLETest<> { … }; // Test DXT1 formats with POT sizes on all mips TEST_P(S3TCTextureSizesTest, POT) { … } // Test DXT1 formats with NPOT sizes with glTexStorage TEST_P(S3TCTextureSizesTest, NPOTTexStorage) { … } // Test DXT1 formats with NPOT sizes with glTex[Sub]Image TEST_P(S3TCTextureSizesTest, NPOTTexImage) { … } // Use this to select which configurations (e.g. which renderer, which GLES major version) these // tests should be run against. ANGLE_INSTANTIATE_TEST_ES2_AND_ES3(…);