1 /*-------------------------------------------------------------------------
2 * OpenGL Conformance Test Suite
3 * -----------------------------
4 *
5 * Copyright (c) 2022-2022 The Khronos Group Inc.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20 /*!
21 * \file esextFragmentShadingRateAPI.cpp
22 * \brief Base test group for fragment shading rate tests
23 */ /*-------------------------------------------------------------------*/
24
25 #include "esextcFragmentShadingRateAPI.hpp"
26 #include "esextcFragmentShadingRateBasic.hpp"
27 #include "esextcFragmentShadingRateErrors.hpp"
28
29 namespace glcts
30 {
31
32 /// Constructor
33 ///
34 /// @param context Test context
35 /// @param glslVersion GLSL version
FragmentShadingRateAPI(glcts::Context & context,const ExtParameters & extParams)36 FragmentShadingRateAPI::FragmentShadingRateAPI(glcts::Context& context, const ExtParameters& extParams)
37 : TestCaseGroupBase(context, extParams, "api", "Fragment Shading Rate")
38 {
39 }
40
41 /// Initializes test cases for fragment shading rate tests
init(void)42 void FragmentShadingRateAPI::init(void)
43 {
44 // Initialize base class
45 TestCaseGroupBase::init();
46
47 // Case 1 - via basic shading rate function
48 addChild(new FragmentShadingRateBasic(m_context, m_extParams, "basic", "Fragment shading rate functional test"));
49 // Case 2 - validation error check
50 addChild(new FragmentShadingRateErrors(m_context, m_extParams, "errors",
51 "Fragment Shading Rate Validation Error Tests"));
52 }
53
54 } // namespace glcts
55