Lines Matching refs:gencom

21 import generator_common as gencom  namespace
43 for cmd in gencom.command_list:
44 if cmd not in gencom.alias_dict:
45 if gencom.is_instance_dispatch_table_entry(cmd):
47 'PFN_' + cmd + ' ' + gencom.base_name(cmd) + ';')
48 elif gencom.is_device_dispatch_table_entry(cmd):
50 'PFN_' + cmd + ' ' + gencom.base_name(cmd) + ';')
52 f.write(gencom.copyright_and_warning(2016))
71 f.write(gencom.indent(1) + entry + '\n')
81 f.write(gencom.indent(1) + entry + '\n')
102 gencom.run_clang_format(genfile)
112 if (cmd in gencom.extension_dict and gencom.is_function_exported(cmd)):
113 ext_name = gencom.extension_dict[cmd]
114 ret = gencom.return_type_dict[cmd]
115 params = gencom.param_dict[cmd]
119 f.write('VKAPI_ATTR ' + ret + ' disabled' + gencom.base_name(cmd) +
122 f.write(gencom.indent(1) + 'driver::Logger(' + params[0][1] +
126 if gencom.return_type_dict[cmd] != 'void':
127 f.write(gencom.indent(1) + 'return VK_SUCCESS;\n')
138 if gencom.is_function_supported(cmd):
139 if gencom.is_globally_dispatched(cmd) or cmd in _INTERCEPTED_COMMANDS:
154 for cmd in gencom.command_list:
157 if gencom.is_globally_dispatched(cmd) or cmd == 'vkGetInstanceProcAddr':
158 f.write(gencom.indent(2) +
161 gencom.base_name(cmd) + ');\n')
173 sorted_command_list = sorted(gencom.command_list)
175 if gencom.is_function_exported(cmd):
176 if gencom.is_globally_dispatched(cmd):
177 f.write(gencom.indent(2) + '{ \"' + cmd + '\", nullptr },\n')
180 gencom.is_device_dispatched(cmd)):
181 f.write(gencom.indent(2) + '{ \"' + cmd +
183 gencom.base_name(cmd) + ') },\n')
217 sorted_command_list = sorted(gencom.command_list)
219 if gencom.is_function_supported(cmd):
220 if not gencom.is_device_dispatched(cmd):
221 f.write(gencom.indent(2) + '\"' + cmd + '\",\n')
239 for cmd in gencom.command_list:
240 if gencom.is_device_dispatched(cmd):
242 f.write(gencom.indent(1) + 'if (strcmp(pName, "' + cmd +
244 gencom.base_name(cmd) + ');\n')
257 f.write(gencom.indent(1))
258 if gencom.return_type_dict[cmd] != 'void':
261 param_list = gencom.param_dict[cmd]
263 f.write('GetData(' + handle + ').dispatch.' + gencom.base_name(cmd) +
274 f.write(gencom.copyright_and_warning(2016))
315 for cmd in gencom.command_list:
332 for cmd in gencom.command_list:
333 if gencom.is_instance_dispatch_table_entry(cmd):
334 gencom.init_proc(cmd, f)
351 for cmd in gencom.command_list:
352 if gencom.is_device_dispatch_table_entry(cmd):
353 gencom.init_proc(cmd, f)
368 for cmd in gencom.command_list:
369 if gencom.is_function_exported(cmd) and not _is_intercepted(cmd):
370 param_list = [''.join(i) for i in gencom.param_dict[cmd]]
371 f.write('VKAPI_ATTR ' + gencom.return_type_dict[cmd] + ' ' +
372 gencom.base_name(cmd) + '(' + ', '.join(param_list) + ');\n')
375 for cmd in gencom.command_list:
376 if gencom.is_function_exported(cmd) and not _is_intercepted(cmd):
377 param_list = [''.join(i) for i in gencom.param_dict[cmd]]
378 f.write('VKAPI_ATTR ' + gencom.return_type_dict[cmd] + ' ' +
379 gencom.base_name(cmd) + '(' + ', '.join(param_list) + ') {\n')
397 for cmd in gencom.command_list:
398 if gencom.is_function_exported(cmd):
399 param_list = [''.join(i) for i in gencom.param_dict[cmd]]
401 f.write('VKAPI_ATTR ' + gencom.return_type_dict[cmd] + ' ' +
403 f.write(gencom.indent(1))
404 if gencom.return_type_dict[cmd] != 'void':
406 param_list = gencom.param_dict[cmd]
407 f.write('vulkan::api::' + gencom.base_name(cmd) +
412 gencom.run_clang_format(genfile)