• Home
  • Raw
  • Download

Lines Matching +full:check +full:- +full:api +full:- +full:version

1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
7 # Copyright 2015-2017 The Android Open Source Project
9 # Licensed under the Apache License, Version 2.0 (the "License");
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
39 "https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry",
173 # Add all extensions using the ES2 api, but force even non-ES2
191 def versionCheck(version): argument
192 if type(version) is bool:
193 if version == False:
195 if type(version) is str:
196 return version < "3.2"
197 raise "Version check failed"
199 def getInterface (registry, api, version=None, profile=None, **kwargs): argument
200 spec = khr_util.registry.spec(registry, api, version, profile, **kwargs)
201 if api == 'gl' and profile == 'core' and versionCheck(version):
205 return khr_util.registry.createInterface(registry, spec, api)
207 def getVersionToken (api, version): argument
209 return prefixes[api] + version.replace(".", "")
218 def genCommandLists(registry, renderCommand, check, directory, filePattern, align=False): argument
220 api = eFeature.get('api')
221 version = eFeature.get('number')
222 profile = check(api, version)
227 iface = getInterface(registry, api, version=version, profile=profile)
228 filename = filePattern % getVersionToken(api, version)
242 INL_HEADER = khr_util.format.genInlHeader("Khronos GL API description (gl.xml)", GL_SOURCE.getRevis…