// // 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. // // DXTSRGBCompressedTextureTest.cpp // Tests for sRGB DXT textures (GL_EXT_texture_compression_s3tc_srgb) // #include "test_utils/ANGLETest.h" #include "test_utils/gl_raii.h" #include "media/pixel.inc" #include "DXTSRGBCompressedTextureTestData.inl" usingnamespaceangle; static constexpr int kWindowSize = …; class DXTSRGBCompressedTextureTest : public ANGLETest<> { … }; // Test correct decompression of 8x8 textures (four 4x4 blocks) of SRGB_S3TC_DXT1 TEST_P(DXTSRGBCompressedTextureTest, Decompression8x8RGBDXT1) { … } // Test correct decompression of 8x8 textures (four 4x4 blocks) of SRGB_ALPHA_S3TC_DXT1 TEST_P(DXTSRGBCompressedTextureTest, Decompression8x8RGBADXT1) { … } // Test correct decompression of 8x8 textures (four 4x4 blocks) of SRGB_ALPHA_S3TC_DXT3 TEST_P(DXTSRGBCompressedTextureTest, Decompression8x8RGBADXT3) { … } // Test correct decompression of 8x8 textures (four 4x4 blocks) of SRGB_ALPHA_S3TC_DXT5 TEST_P(DXTSRGBCompressedTextureTest, Decompression8x8RGBADXT5) { … } // 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(…);