Home | History | Annotate | Download | only in opengl

Lines Matching defs:apiType

40 inline bool versionGreaterOrEqual (ApiType a, ApiType b)
46 bool contextSupports (ContextType ctxType, ApiType requiredApiType)
119 RenderContext* createDefaultRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, ApiType apiType)
133 config.type = glu::ContextType(apiType, ctxFlags);
168 if (config.type.getAPI() == ApiType::es(3,1))
178 static std::vector<std::string> getExtensions (const glw::Functions& gl, ApiType apiType)
183 if (apiType.getProfile() == PROFILE_ES && apiType.getMajorVersion() == 2)
226 void initCoreFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
230 ApiType apiType;
234 { ApiType::es(2,0), glw::initES20 },
235 { ApiType::es(3,0), glw::initES30 },
236 { ApiType::es(3,1), glw::initES31 },
237 { ApiType::core(3,0), glw::initGL30Core },
238 { ApiType::core(3,1), glw::initGL31Core },
239 { ApiType::core(3,2), glw::initGL32Core },
240 { ApiType::core(3,3), glw::initGL33Core },
241 { ApiType::core(4,0), glw::initGL40Core },
242 { ApiType::core(4,1), glw::initGL41Core },
243 { ApiType::core(4,2), glw::initGL42Core },
244 { ApiType::core(4,3), glw::initGL43Core },
245 { ApiType::core(4,4), glw::initGL44Core },
250 if (s_initFuncs[ndx].apiType == apiType)
257 throw tcu::InternalError(std::string("Don't know how to load functions for ") + de::toString(apiType));
260 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
262 std::vector<std::string> extensions = getExtensions(*dst, apiType);
271 initExtensionFunctions(dst, loader, apiType, (int)extStr.size(), &extStr[0]);
275 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType, int numExtensions, const char* const* extensions)
277 if (apiType.getProfile() == PROFILE_ES)
283 void initFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
285 initCoreFunctions(dst, loader, apiType);
286 initExtensionFunctions(dst, loader, apiType);