Lines Matching refs:cur_cmd

577             for cur_cmd in commands:
578 version = self.getAPIVersion(cur_cmd.ext_name)
579 is_inst_handle_type = cur_cmd.name in ADD_INST_CMDS or cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice'
582 if cur_cmd.ext_name != cur_extension_name:
586 table += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
587 cur_extension_name = cur_cmd.ext_name
590 base_name = cur_cmd.name[2:]
592 if cur_cmd.protect is not None:
593 table += '#if defined(%s)\n' % cur_cmd.protect
595 table += ' PFN_%s %s;\n' % (cur_cmd.name, base_name)
597 if cur_cmd.protect is not None:
598 table += '#endif // %s\n' % cur_cmd.protect
621 for cur_cmd in commands:
622 version = self.getAPIVersion(cur_cmd.ext_name)
623 is_inst_handle_type = cur_cmd.name in ADD_INST_CMDS or cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice'
626 if cur_cmd.ext_name != cur_extension_name:
630 table += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
631 cur_extension_name = cur_cmd.ext_name
634 base_name = cur_cmd.name[2:]
636 if cur_cmd.protect is not None:
637 table += '#if defined(%s)\n' % cur_cmd.protect
639 table += ' PFN_%s %s;\n' % (cur_cmd.name, base_name)
641 if cur_cmd.protect is not None:
642 table += '#endif // %s\n' % cur_cmd.protect
649 def ShouldPrintInIcdDispatchTable(self, cur_cmd, skip_list):
650 return cur_cmd.name == 'vkGetDeviceProcAddr' or \
651 (cur_cmd.handle_type not in ['VkDevice', 'VkCommandBuffer', 'VkQueue'] and cur_cmd.name not in skip_list)
673 for cur_cmd in commands:
674 version = self.getAPIVersion(cur_cmd.ext_name)
675 if (self.ShouldPrintInIcdDispatchTable(cur_cmd, skip_commands)):
676 if cur_cmd.ext_name != cur_extension_name:
680 table += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
681 cur_extension_name = cur_cmd.ext_name
684 base_name = cur_cmd.name[2:]
686 if cur_cmd.protect is not None:
687 table += '#if defined(%s)\n' % cur_cmd.protect
689 table += ' PFN_%s %s;\n' % (cur_cmd.name, base_name)
691 if cur_cmd.protect is not None:
692 table += '#endif // %s\n' % cur_cmd.protect
736 for cur_cmd in commands:
737 version = self.getAPIVersion(cur_cmd.ext_name)
738 if (self.ShouldPrintInIcdDispatchTable(cur_cmd, skip_gipa_commands)):
740 if cur_cmd.ext_name != cur_extension_name:
745 table += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
747 cur_extension_name = cur_cmd.ext_name
750 base_name = cur_cmd.name[2:]
752 if cur_cmd.protect is not None:
753 table += '#if defined(%s)\n' % cur_cmd.protect
761 if cur_cmd.protect is not None:
762 table += '#endif // %s\n' % cur_cmd.protect
795 for cur_cmd in self.core_commands:
796 is_inst_handle_type = cur_cmd.name in ADD_INST_CMDS or cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice'
799 new_terminator = cur_cmd.cdecl
802 if cur_cmd.name in PRE_INSTANCE_FUNCTIONS:
803 mod_string = mod_string.replace(cur_cmd.name[2:] + '(\n', cur_cmd.name[2:] + '(\n const Vk' + cur_cmd.name[2:] + 'Chain* chain,\n')
805 if (cur_cmd.protect is not None):
806 terminators += '#if defined(%s)\n' % cur_cmd.protect
811 if (cur_cmd.protect is not None):
812 terminators += '#endif // %s\n' % cur_cmd.protect
871 for cur_cmd in commands:
872 version = self.getAPIVersion(cur_cmd.ext_name)
873 is_inst_handle_type = cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice'
875 if cur_cmd.ext_name != cur_extension_name:
879 tables += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
880 cur_extension_name = cur_cmd.ext_name
883 base_name = cur_cmd.name[2:]
892 if cur_cmd.protect is not None:
893 tables += '#if defined(%s)\n' % cur_cmd.protect
900 elif cur_cmd.ext_type == 'instance':
901 tables += ' table->%s = (PFN_%s)gipa(inst, "%s");\n' % (base_name, cur_cmd.name, cur_cmd.name)
903 tables += ' table->%s = (PFN_%s)gdpa(dev, "%s");\n' % (base_name, cur_cmd.name, cur_cmd.name)
909 tables += ' table->%s = (PFN_%s)gpa(%s, "%s");\n' % (base_name, cur_cmd.name, gpa_param, cur_cmd.name)
911 if cur_cmd.protect is not None:
912 tables += '#endif // %s\n' % cur_cmd.protect
964 for cur_cmd in commands:
965 version = self.getAPIVersion(cur_cmd.ext_name)
966 is_inst_handle_type = cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice'
968 if cur_cmd.ext_name != cur_extension_name:
975 tables += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
977 cur_extension_name = cur_cmd.ext_name
980 base_name = cur_cmd.name[2:]
988 if cur_cmd.protect is not None:
989 tables += '#if defined(%s)\n' % cur_cmd.protect
992 if cur_cmd.name in DEVICE_CMDS_MUST_USE_TRAMP:
994 tables += f'{{\n{version_check} return dev->layer_extensions.{cur_cmd.ext_name[3:].lower()}_enabled ? (void *){base_name} : NULL;\n }}\n'
996 tables += f'return dev->layer_extensions.{cur_cmd.ext_name[3:].lower()}_enabled ? (void *){base_name} : NULL;\n'
1004 if cur_cmd.protect is not None:
1005 tables += '#endif // %s\n' % cur_cmd.protect
1444 for cur_cmd in self.ext_commands:
1445 if (self.getAPIVersion(cur_cmd.ext_name) or
1446 cur_cmd.ext_name in WSI_EXT_NAMES or
1447 cur_cmd.ext_name in AVOID_EXT_NAMES or
1448 cur_cmd.name in AVOID_CMD_NAMES ):
1451 if cur_cmd.ext_name != cur_extension_name:
1452 gpa_func += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
1453 cur_extension_name = cur_cmd.ext_name
1455 if cur_cmd.protect is not None:
1456 gpa_func += '#if defined(%s)\n' % cur_cmd.protect
1458 #base_name = cur_cmd.name[2:]
1459 base_name = SHARED_ALIASES[cur_cmd.name] if cur_cmd.name in SHARED_ALIASES else cur_cmd.name[2:]
1461 if (cur_cmd.ext_type == 'instance'):
1462 gpa_func += ' if (!strcmp("%s", name)) {\n' % (cur_cmd.name)
1464 gpa_func += cur_cmd.ext_name[3:].lower()
1471 gpa_func += ' if (!strcmp("%s", name)) {\n' % (cur_cmd.name)
1476 if cur_cmd.protect is not None:
1477 gpa_func += '#endif // %s\n' % cur_cmd.protect
1693 for cur_cmd in commands:
1694 version = self.getAPIVersion(cur_cmd.ext_name)
1695 if cur_cmd.handle_type == 'VkInstance' or cur_cmd.handle_type == 'VkPhysicalDevice':
1696 if cur_cmd.ext_name != cur_extension_name:
1700 table += '\n // ---- %s extension commands\n' % cur_cmd.ext_name
1701 cur_extension_name = cur_cmd.ext_name
1704 base_name = cur_cmd.name[2:]
1705 aliased_name = SHARED_ALIASES[cur_cmd.name][2:] if cur_cmd.name in SHARED_ALIASES else base_name
1713 if cur_cmd.protect is not None:
1714 table += '#if defined(%s)\n' % cur_cmd.protect
1717 table += ' .%s = %s,\n' % (base_name, cur_cmd.name)
1721 if cur_cmd.protect is not None:
1722 table += '#endif // %s\n' % cur_cmd.protect