// // Copyright 2018 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. // // TextureParameterTest.cpp: Tests GLES1-specific usage of glTexParameter. #include "test_utils/ANGLETest.h" #include "test_utils/gl_raii.h" #include "util/random_utils.h" #include <stdint.h> usingnamespaceangle; class TextureParameterTest : public ANGLETest<> { … }; // Initial state check TEST_P(TextureParameterTest, InitialState) { … } // Negative test: invalid enum / operation TEST_P(TextureParameterTest, NegativeEnum) { … } // Checks that GLES1-specific texture parameters can be set. TEST_P(TextureParameterTest, Set) { … } // Make sure we don't improperly cast an int into a float in ANGLE's internals TEST_P(TextureParameterTest, IntConversionsAndIntBounds) { … } // Check that texture parameters can be set by glTexParameterx, glTexParameterxv // and get by glGetTexParameterxv. TEST_P(TextureParameterTest, SetFixedPoint) { … } ANGLE_INSTANTIATE_TEST_ES1(…);