xref: /aosp_15_r20/external/deqp/framework/opengl/wrapper/glwInitES32Direct.cpp (revision 35238bce31c2a825756842865a792f8cf7f89930)
1 /*-------------------------------------------------------------------------
2  * drawElements Quality Program OpenGL Utilities
3  * ---------------------------------------------
4  *
5  * Copyright 2014 The Android Open Source Project
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  * \file
21  * \brief Function table initialization.
22  *//*--------------------------------------------------------------------*/
23 
24 #include "glwInitES32Direct.hpp"
25 
26 #include <stdexcept>
27 
28 #if defined(DEQP_GLES32_DIRECT_LINK)
29 #if (DE_OS == DE_OS_IOS)
30 #include <OpenGLES/ES3/gl.h>
31 #else
32 #include <GLES3/gl32.h>
33 #endif
34 #endif
35 
36 namespace glw
37 {
38 
initES32Direct(Functions * gl)39 void initES32Direct(Functions *gl)
40 {
41 #if defined(DEQP_GLES32_DIRECT_LINK)
42 #include "glwInitES32Direct.inl"
43 #else
44     DE_UNREF(gl);
45     throw std::runtime_error("Binaries were compiled without ES32 direct loading support");
46 #endif
47 }
48 
49 } // namespace glw
50