Lines Matching defs:apiType
41 inline bool versionGreaterOrEqual (ApiType a, ApiType b)
47 bool contextSupports (ContextType ctxType, ApiType requiredApiType)
120 RenderContext* createDefaultRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, ApiType apiType)
134 config.type = glu::ContextType(apiType, ctxFlags);
164 static std::vector<std::string> getExtensions (const glw::Functions& gl, ApiType apiType)
169 if (apiType.getProfile() == PROFILE_ES && apiType.getMajorVersion() == 2)
212 bool hasExtension (const glw::Functions& gl, ApiType apiType, const std::string& extension)
214 std::vector<std::string> extensions(getExtensions(gl, apiType));
219 void initCoreFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
223 ApiType apiType;
227 { ApiType::es(2,0), glw::initES20 },
228 { ApiType::es(3,0), glw::initES30 },
229 { ApiType::es(3,1), glw::initES31 },
230 { ApiType::es(3,2), glw::initES32 },
231 { ApiType::core(3,0), glw::initGL30Core },
232 { ApiType::core(3,1), glw::initGL31Core },
233 { ApiType::core(3,2), glw::initGL32Core },
234 { ApiType::core(3,3), glw::initGL33Core },
235 { ApiType::core(4,0), glw::initGL40Core },
236 { ApiType::core(4,1), glw::initGL41Core },
237 { ApiType::core(4,2), glw::initGL42Core },
238 { ApiType::core(4,3), glw::initGL43Core },
239 { ApiType::core(4,4), glw::initGL44Core },
244 if (s_initFuncs[ndx].apiType == apiType)
251 throw tcu::InternalError(std::string("Don't know how to load functions for ") + de::toString(apiType));
254 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
256 std::vector<std::string> extensions = getExtensions(*dst, apiType);
265 initExtensionFunctions(dst, loader, apiType, (int)extStr.size(), &extStr[0]);
269 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType, int numExtensions, const char* const* extensions)
271 if (apiType.getProfile() == PROFILE_ES)
277 void initFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType)
279 initCoreFunctions(dst, loader, apiType);
280 initExtensionFunctions(dst, loader, apiType);