am 78add1e6: am 664e0500: Fix atomic min and max signed value verification.
[platform/upstream/VK-GL-CTS.git] / scripts / opengl / gen_func_init.py
1 # -*- coding: utf-8 -*-
2
3 from src_util import *
4
5 def commandInitStatement (command):
6         return "gl->%s\t= (%s)\tloader->get(\"%s\");" % (
7                 getFunctionMemberName(command.name),
8                 getFunctionTypeName(command.name),
9                 command.name)
10
11 def genFuncInit (registry):
12         def check(api, version):
13                 if api == 'gl' and version >= "3.0":
14                         return 'core'
15                 return api == 'gles2'
16
17         genCommandLists(registry, commandInitStatement,
18                                         check           = check,
19                                         directory       = OPENGL_INC_DIR,
20                                         filePattern     = "glwInit%s.inl",
21                                         align           = True)
22
23 if __name__ == "__main__":
24         genFuncInit(getGLRegistry())