• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*-------------------------------------------------------------------------
2  * OpenGL Conformance Test Suite
3  * -----------------------------
4  *
5  * Copyright (c) 2021 The Khronos Group Inc.
6  * Copyright (c) 2021 Google LLC
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */ /*!
21  * \file
22  * \brief
23  */ /*-------------------------------------------------------------------*/
24 
25 /*!
26  * \file  esextDisjointTimerQueryBase.cpp
27  * \brief Base class for Timer query tests
28  */ /*-------------------------------------------------------------------*/
29 
30 #include "esextcDisjointTimerQueryBase.hpp"
31 #include "gluContextInfo.hpp"
32 #include "gluDefs.hpp"
33 #include "glwEnums.hpp"
34 #include "glwFunctions.hpp"
35 #include "tcuTestLog.hpp"
36 #include <vector>
37 
38 namespace glcts
39 {
40 
41 /** Constructor
42  *
43  *  @param context     Test context
44  *  @param name        Test case's name
45  *  @param description Test case's description
46  **/
DisjointTimerQueryBase(Context & context,const ExtParameters & extParams,const char * name,const char * description)47 DisjointTimerQueryBase::DisjointTimerQueryBase (Context& context, const ExtParameters& extParams,
48 											    const char* name, const char* description)
49 	: TestCaseBase(context, extParams, name, description)
50 {
51 	glGenQueriesEXT				= (glGenQueriesEXTFunc)context.getRenderContext().getProcAddress("glGenQueriesEXT");
52 	glDeleteQueriesEXT			= (glDeleteQueriesEXTFunc)context.getRenderContext().getProcAddress("glDeleteQueriesEXT");
53 	glIsQueryEXT				= (glIsQueryEXTFunc)context.getRenderContext().getProcAddress("glIsQueryEXT");
54 	glBeginQueryEXT				= (glBeginQueryEXTFunc)context.getRenderContext().getProcAddress("glBeginQueryEXT");
55 	glEndQueryEXT				= (glEndQueryEXTFunc)context.getRenderContext().getProcAddress("glEndQueryEXT");
56 	glQueryCounterEXT			= (glQueryCounterEXTFunc)context.getRenderContext().getProcAddress("glQueryCounterEXT");
57 	glGetQueryivEXT				= (glGetQueryivEXTFunc)context.getRenderContext().getProcAddress("glGetQueryivEXT");
58 	glGetQueryObjectivEXT		= (glGetQueryObjectivEXTFunc)context.getRenderContext().getProcAddress("glGetQueryObjectivEXT");
59 	glGetQueryObjectuivEXT		= (glGetQueryObjectuivEXTFunc)context.getRenderContext().getProcAddress("glGetQueryObjectuivEXT");
60 	glGetQueryObjecti64vEXT		= (glGetQueryObjecti64vEXTFunc)context.getRenderContext().getProcAddress("glGetQueryObjecti64vEXT");
61 	glGetQueryObjectui64vEXT	= (glGetQueryObjectui64vEXTFunc)context.getRenderContext().getProcAddress("glGetQueryObjectui64vEXT");
62 	glGetInteger64vEXT			= (glGetInteger64vEXTFunc)context.getRenderContext().getProcAddress("glGetInteger64vEXT");
63 }
64 
65 } // namespace glcts
66