// // Copyright 2016 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. // // CopyCompressedTextureTest.cpp: Tests of the GL_CHROMIUM_copy_compressed_texture extension #include "test_utils/ANGLETest.h" namespace angle { class CopyCompressedTextureTest : public ANGLETest<> { … }; namespace { const GLColor &CompressedImageColor = …; // Single compressed ATC block of source pixels all set to: // CompressedImageColor. const uint8_t CompressedImageATC[8] = …; // Single compressed ATCIA block of source pixels all set to: // CompressedImageColor. const uint8_t CompressedImageATCIA[16] = …; // Single compressed DXT1 block of source pixels all set to: // CompressedImageColor. const uint8_t CompressedImageDXT1[8] = …; // Single compressed DXT5 block of source pixels all set to: // CompressedImageColor. const uint8_t CompressedImageDXT5[16] = …; // Single compressed DXT1 block of source pixels all set to: // CompressedImageColor. const uint8_t CompressedImageETC1[8] = …; } // anonymous namespace // Test to ensure that the basic functionality of the extension works. TEST_P(CopyCompressedTextureTest, Basic) { … } // Test validation of compressed formats TEST_P(CopyCompressedTextureTest, InternalFormat) { … } // Test that uncompressed textures generate errors when copying TEST_P(CopyCompressedTextureTest, InternalFormatNotSupported) { … } // Test validation of texture IDs TEST_P(CopyCompressedTextureTest, InvalidTextureIds) { … } // Test that only 2D textures are valid TEST_P(CopyCompressedTextureTest, BindingPoints) { … } // Test the destination texture cannot be immutable TEST_P(CopyCompressedTextureTest, Immutable) { … } // 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(…); } // namespace angle