am 5193012e: am 54edf543: Add cube gather tests that avoid corners; remove D32F from...
[platform/upstream/VK-GL-CTS.git] / scripts / opengl / gen_es_direct_init.py
1 # -*- coding: utf-8 -*-
2
3 from src_util import *
4
5 def commandDirectInitStatement (command):
6         # Workaround for broken headers
7         if command.name == "glShaderSource":
8                 cast = "(%s)" % getFunctionTypeName(command.name)
9         else:
10                 cast = ""
11         return "gl->%s\t= %s&%s;" % (getFunctionMemberName(command.name),
12                                                                  cast,
13                                                                  command.name)
14
15 def genESDirectInit (registry):
16         genCommandLists(registry, commandDirectInitStatement,
17                                         check           = lambda api, _: api == 'gles2',
18                                         directory       = OPENGL_INC_DIR,
19                                         filePattern     = "glwInit%sDirect.inl",
20                                         align           = True)
21
22 if __name__ == "__main__":
23         genESDirectInit(getGLRegistry())