• Home
  • Raw
  • Download

Lines Matching refs:indent

272     def incIndent(self, indent):  argument
274 if indent:
275 return indent + inc
279 def decIndent(self, indent): argument
280 if indent and (len(indent) > self.INDENT_SPACES):
281 return indent[:-self.INDENT_SPACES]
605 def lock_guard(self, indent): argument
606 return '%sstd::lock_guard<std::mutex> lock(global_lock);\n' % indent
678 def generate_create_object_code(self, indent, proto, params, cmd_info, allocator): argument
693 … create_obj_code += '%sif (VK_ERROR_VALIDATION_FAILED_EXT == result) return;\n' % indent
697 …e_obj_code += '%sfor (uint32_t index = 0; index < %s%s; index++) {\n' % (indent, countispointer, c…
698 indent = self.incIndent(indent)
703 create_obj_code += '%sif (!pPipelines[index]) continue;\n' % indent
704 …create_obj_code += '%sCreateObject(%s, %s, %s, %s);\n' % (indent, params[0].find('name').text, obj…
706 indent = self.decIndent(indent)
707 create_obj_code += '%s}\n' % indent
708 indent = self.decIndent(indent)
712 def generate_destroy_object_code(self, indent, proto, cmd_info): argument
734 … '%sskip |= ValidateDestroyObject(%s, %s, %s, pAllocator, %s, %s);\n' % (indent, cmd_info[0].name,…
735 …record_code += '%sRecordDestroyObject(%s, %s, %s);\n' % (indent, cmd_info[0].name, cmd_info[param]…
739 …def outputObjects(self, obj_type, obj_name, obj_count, prefix, index, indent, disp_name, parent_na… argument
750 …pre_call_code += '%sfor (uint32_t %s = 0; %s < %s; ++%s) {\n' % (indent, index, index, obj_count, …
751 indent = self.incIndent(indent)
752 …pre_call_code += '%sskip |= ValidateObject(%s, %s%s[%s], %s, %s, %s, %s);\n' % (indent, disp_name,…
753 indent = self.decIndent(indent)
754 pre_call_code += '%s}\n' % indent
756 …pre_call_code += '%sskip |= ValidateObject(%s, %s%s, %s, %s, %s, %s);\n' % (indent, disp_name, pre…
760 …def validate_objects(self, members, indent, prefix, array_index, disp_name, parent_name, first_lev… argument
774 … self.outputObjects(member.type, member.name, count_name, prefix, index, indent, disp_name, parent…
787 pre_code += '%sif (%s%s) {\n' % (indent, prefix, member.name)
788 indent = self.incIndent(indent)
789 …pre_code += '%sfor (uint32_t %s = 0; %s < %s%s; ++%s) {\n' % (indent, index, index, prefix, member…
790 indent = self.incIndent(indent)
793 …tmp_pre = self.validate_objects(struct_info, indent, local_prefix, array_index, disp_name, member.…
795 indent = self.decIndent(indent)
796 pre_code += '%s}\n' % indent
797 indent = self.decIndent(indent)
798 pre_code += '%s}\n' % indent
804 pre_code += '%sif (%s%s) {\n' % (indent, prefix, member.name)
805 indent = self.incIndent(indent)
807 …tmp_pre = self.validate_objects(struct_info, indent, new_prefix, array_index, disp_name, member.ty…
809 indent = self.decIndent(indent)
810 pre_code += '%s}\n' % indent
815 indent = ' '
832 …post_call_record += self.generate_create_object_code(indent, proto, params, cmd_info, cmddata.allo…
835 …ate_destroy_code, record_destroy_code) = self.generate_destroy_object_code(indent, proto, cmd_info)
838 … pre_call_validate += self.validate_objects(cmd_info, indent, '', 0, disp_name, proto.text, True)