Lines Matching refs:cmd_info
408 def generate_create_ndo_code(self, indent, proto, params, cmd_info): argument
415 if cmd_info[-1].len is not None:
423 …e_ndo_code += '%sfor (uint32_t index0 = 0; index0 < %s; index0++) {\n' % (indent, cmd_info[-1].len)
425 ndo_dest = '%s[index0]' % cmd_info[-1].name
437 def generate_destroy_ndo_code(self, indent, proto, cmd_info): argument
442 if cmd_info[-1].len is not None:
447 if self.isHandleTypeNonDispatchable(cmd_info[param].type) == True:
450 … destroy_ndo_code += '%sif ((VK_SUCCESS == result) && (%s)) {\n' % (indent, cmd_info[param].name)
453 …do_code += '%sfor (uint32_t index0 = 0; index0 < %s; index0++) {\n' % (indent, cmd_info[param].len)
455 …destroy_ndo_code += '%s%s handle = %s[index0];\n' % (indent, cmd_info[param].type, cmd_info[param]…
465 …64_t %s_id = reinterpret_cast<uint64_t &>(%s);\n' % (indent, cmd_info[param].name, cmd_info[param]…
466 …dev_data->unique_id_mapping[%s_id];\n' % (indent, cmd_info[param].name, cmd_info[param].type, cmd_…
467 …estroy_ndo_code += '%sdev_data->unique_id_mapping.erase(%s_id);\n' % (indent, cmd_info[param].name)
613 cmd_info = cmd_member_dict[proto.text]
615 if cmd_info[0].iscreate:
616 create_ndo_code = self.generate_create_ndo_code(indent, proto, params, cmd_info)
620 if cmd_info[0].isdestroy:
621 … (destroy_array, destroy_ndo_code) = self.generate_destroy_ndo_code(indent, proto, cmd_info)
630 …(paramdecl, param_pre_code, param_post_code) = self.uniquify_members(cmd_info, indent, '', 0, crea…