1 #ifndef _GLSBUILTINPRECISIONTESTS_HPP
2 #define _GLSBUILTINPRECISIONTESTS_HPP
4 /*-------------------------------------------------------------------------
5 * drawElements Quality Program OpenGL (ES) Module
6 * -----------------------------------------------
8 * Copyright 2014 The Android Open Source Project
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 * \brief Tests for precision and range of GLSL builtins and types.
25 *//*--------------------------------------------------------------------*/
27 #include "deUniquePtr.hpp"
28 #include "tcuTestCase.hpp"
29 #include "gluRenderContext.hpp"
30 #include "gluShaderUtil.hpp"
38 namespace BuiltinPrecisionTests
46 virtual ~CaseFactories (void) {}
47 virtual const std::vector<const CaseFactory*> getFactories (void) const = 0;
50 de::MovePtr<const CaseFactories> createES3BuiltinCases (void);
51 de::MovePtr<const CaseFactories> createES31BuiltinCases (void);
53 void addBuiltinPrecisionTests (
54 tcu::TestContext& testCtx,
55 glu::RenderContext& renderCtx,
56 const CaseFactories& cases,
57 const std::vector<glu::ShaderType>& shaderTypes,
58 tcu::TestCaseGroup& dstGroup);
60 } // BuiltinPrecisionTests
62 using BuiltinPrecisionTests::addBuiltinPrecisionTests;
67 #endif // _GLSBUILTINPRECISIONTESTS_HPP