Lines Matching refs:cmd

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) + ';')
105 def _define_extension_stub(cmd, f): argument
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) +
124 ' not enabled. Exported ' + cmd + ' not executed.\");\n')
126 if gencom.return_type_dict[cmd] != 'void':
132 def _is_intercepted(cmd): argument
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':
159 'if (strcmp(pName, \"' + cmd +
161 gencom.base_name(cmd) + ');\n')
174 for cmd in sorted_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')
178 elif (_is_intercepted(cmd) or
179 cmd == 'vkGetInstanceProcAddr' or
180 gencom.is_device_dispatched(cmd)):
181 f.write(gencom.indent(2) + '{ \"' + cmd +
183 gencom.base_name(cmd) + ') },\n')
218 for cmd in sorted_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):
241 if _is_intercepted(cmd) or cmd == 'vkGetDeviceProcAddr':
242 f.write(gencom.indent(1) + 'if (strcmp(pName, "' + cmd +
244 gencom.base_name(cmd) + ');\n')
248 def _api_dispatch(cmd, f): argument
255 assert not _is_intercepted(cmd)
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) +
315 for cmd in gencom.command_list:
316 _define_extension_stub(cmd, f)
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')
380 if cmd == 'vkGetInstanceProcAddr':
382 elif cmd == 'vkGetDeviceProcAddr':
384 _api_dispatch(cmd, f)
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] + ' ' +
402 cmd + '(' + ', '.join(param_list) + ') {\n')
404 if gencom.return_type_dict[cmd] != 'void':
406 param_list = gencom.param_dict[cmd]
407 f.write('vulkan::api::' + gencom.base_name(cmd) +