1 #ifndef _ES31CTEXTURESTORAGEMULTISAMPLESAMPLEMASKITESTS_HPP 2 #define _ES31CTEXTURESTORAGEMULTISAMPLESAMPLEMASKITESTS_HPP 3 /*------------------------------------------------------------------------- 4 * OpenGL Conformance Test Suite 5 * ----------------------------- 6 * 7 * Copyright (c) 2014-2016 The Khronos Group Inc. 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * 21 */ /*! 22 * \file 23 * \brief 24 */ /*-------------------------------------------------------------------*/ 25 26 /** 27 */ /*! 28 * \file es31cTextureStorageMultisampleSampleMaskiTests.hpp 29 * \brief Declares test classes for glSampleMaski() conformance 30 * tests. (ES3.1 only) 31 */ /*-------------------------------------------------------------------*/ 32 33 #include "es31cTextureStorageMultisampleTests.hpp" 34 35 namespace glcts 36 { 37 /** Test case: No error is reported for calls using (0 < index < MAX_SAMPLE_MASK_WORDS value) argument. 38 */ 39 class MultisampleTextureSampleMaskiIndexLowerThanGLMaxSampleMaskWordsTest : public glcts::TestCase 40 { 41 public: 42 /* Public methods */ 43 MultisampleTextureSampleMaskiIndexLowerThanGLMaxSampleMaskWordsTest(Context& context); 44 45 virtual tcu::TestNode::IterateResult iterate(); 46 }; 47 48 /** Test case: glSampleMaski(): GL_INVALID_VALUE error is reported if index argument is equal to GL_MAX_SAMPLE_MASK_WORDS value. */ 49 class MultisampleTextureSampleMaskiIndexEqualToGLMaxSampleMaskWordsTest : public glcts::TestCase 50 { 51 public: 52 /* Public methods */ 53 MultisampleTextureSampleMaskiIndexEqualToGLMaxSampleMaskWordsTest(Context& context); 54 55 virtual tcu::TestNode::IterateResult iterate(); 56 }; 57 58 /** Test case: glSampleMaski(): GL_INVALID_VALUE error is reported if index argument is larger than GL_MAX_SAMPLE_MASK_WORDS value. */ 59 class MultisampleTextureSampleMaskiIndexGreaterGLMaxSampleMaskWordsTest : public glcts::TestCase 60 { 61 public: 62 /* Public methods */ 63 MultisampleTextureSampleMaskiIndexGreaterGLMaxSampleMaskWordsTest(Context& context); 64 65 virtual tcu::TestNode::IterateResult iterate(); 66 }; 67 68 /** Test case: glSampleMaski(): Sample masks set with the call are correctly reported for 69 * glGetIntegeri_v() calls with GL_SAMPLE_MASK_VALUE pname. 70 **/ 71 class MultisampleTextureSampleMaskiGettersTest : public glcts::TestCase 72 { 73 public: 74 /* Public methods */ 75 MultisampleTextureSampleMaskiGettersTest(Context& context); 76 77 virtual tcu::TestNode::IterateResult iterate(); 78 }; 79 } /* glcts namespace */ 80 81 #endif // _ES31CTEXTURESTORAGEMULTISAMPLESAMPLEMASKITESTS_HPP 82