Lines Matching refs:indent
635 dp_funcs.append("\nvoid dynamic_display_full_txt(const void* pStruct, uint32_t indent)\n{\n // Cast to APP_INFO ptr initially just to pull sType off struct")
650 dp_funcs.append(" %s.set_indent(indent);" % (instance_name))
837 sh_funcs.append(' char indent[100];\n strcpy(indent, " ");\n strcat(indent, prefix);')
847 sh_funcs.append(' return %s((%s*)pStruct, indent);' % (print_func_name, struct_name))
907 indent = ' '
908 sh_funcs.append('%susing namespace StreamControl;' % (indent))
909 sh_funcs.append('%sstring final_str;' % (indent))
910 sh_funcs.append('%sstring tmp_str;' % (indent))
911 sh_funcs.append('%sstring extra_indent = " " + prefix;' % (indent))
913 sh_funcs.append('%sstringstream ss[%u];' % (indent, num_non_enum_elems))
917 sh_funcs.append('%sstring stp_strs[%u];' % (indent, num_stps))
932 sh_funcs.append('%sstp_strs[%u] = "";' % (indent, index))
934 sh_funcs.append('%sstringstream index_ss;' % (indent))
938 sh_funcs.append('%sif (pStruct->imageSharingMode == VK_SHARING_MODE_CONCURRENT) {' % (indent))
940 sh_funcs.append('%sif (pStruct->sharingMode == VK_SHARING_MODE_CONCURRENT) {' % (indent))
941 indent += ' '
943 sh_funcs.append('%sif ((pStruct->descriptorType == VK_DESCRIPTOR_TYPE_SAMPLER) ||' % (indent))
944 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) ||' % (indent))
945 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE) ||' % (indent))
946 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE)) {' % (indent))
947 indent += ' '
949 sh_funcs.append('%sif ((pStruct->descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER) ||' % (indent))
950 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER) ||' % (indent))
951 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) ||' % (indent))
952 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)) {' % (indent))
953 indent += ' '
955 sh_funcs.append('%sif ((pStruct->descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER) ||' % (indent))
956 sh_funcs.append('%s (pStruct->descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER)) {' % (indent))
957 indent += ' '
959 sh_funcs.append('%sif (pStruct->%s) {' % (indent, stp_list[index]['name']))
960 indent += ' '
961 sh_funcs.append('%sfor (uint32_t i = 0; i < %s; i++) {' % (indent, array_count))
962 indent += ' '
963 sh_funcs.append('%sindex_ss.str("");' % (indent))
964 sh_funcs.append('%sindex_ss << i;' % (indent))
969 sh_funcs.append('%sss[%u] << string_%s(pStruct->%s[i]);' % (indent, index, stp_list[index]['type'], stp_list[index]['name']))
970 sh_funcs.append('%sstp_strs[%u] += " " + prefix + "%s[" + index_ss.str() + "] = " + ss[%u].str() + "\\n";' % (indent, index, stp_list[index]['name'], index))
973 sh_funcs.append('%sss[%u] << %spStruct->%s[i];' % (indent, index, addr_char, stp_list[index]['name']))
974 sh_funcs.append('%stmp_str = %s(%spStruct->%s[i], extra_indent);' % (indent, self._get_sh_func_name(stp_list[index]['type']), addr_char, stp_list[index]['name']))
977 sh_funcs.append('%sstp_strs[%u] += " " + prefix + "%s[" + index_ss.str() + "] (addr)\\n" + tmp_str;' % (indent, index, stp_list[index]['name']))
980 sh_funcs.append('%sstp_strs[%u] += " " + prefix + "%s[" + index_ss.str() + "] (" + ss[%u].str() + ")\\n" + tmp_str;' % (indent, index, stp_list[index]['name'], index))
984 sh_funcs.append('%sss[%u] << %spStruct->%s[i];' % (indent, index, addr_char, stp_list[index]['name']))
986 sh_funcs.append('%sstp_strs[%u] += " " + prefix + "%s[" + index_ss.str() + "].handle = " + ss[%u].str() + "\\n";' % (indent, index, stp_list[index]['name'], index))
988 sh_funcs.append('%sstp_strs[%u] += " " + prefix + "%s[" + index_ss.str() + "] = " + ss[%u].str() + "\\n";' % (indent, index, stp_list[index]['name'], index))
990 sh_funcs.append('%sss[%u].str("");' % (indent, index))
991 indent = indent[4:]
992 sh_funcs.append('%s}' % (indent))
994 indent = indent[4:]
995 sh_funcs.append('%s}' % (indent))
998 indent = indent[4:]
999 sh_funcs.append('%s}' % (indent))
1002 sh_funcs.append('%sif (pStruct->%s) {' % (indent, stp_list[index]['name']))
1003 indent += ' '
1138 sh_funcs.append(' string indent = " ";')
1139 sh_funcs.append(' indent += prefix;')
1150 sh_funcs.append(' return %s((%s*)pStruct, indent);' % (print_func_name, struct_name))
1396 indent = ' '
1397 sh_funcs.append('%ssize_t structSize = 0;' % (indent))
1398 sh_funcs.append('%sif (pStruct) {' % (indent))
1399 indent = ' '
1400 sh_funcs.append('%sstructSize = sizeof(%s);' % (indent, typedef_fwd_dict[s]))
1410 sh_funcs.append('%sstructSize += pStruct->%s*(sizeof(%s*) + sizeof(VkImageMemoryBarrier));' % (indent, self.struct_dict[s][m]['array_size'], self.struct_dict[s][m]['type']))
1412 sh_funcs.append('%sstructSize += pStruct->%s*(sizeof(%s*) + sizeof(%s));' % (indent, self.struct_dict[s][m]['array_size'], self.struct_dict[s][m]['type'], self.struct_dict[s][m]['type']))
1415 sh_funcs.append('%suint32_t i = 0;' % (indent))
1417 sh_funcs.append('%sfor (i = 0; i < pStruct->%s; i++) {' % (indent, self.struct_dict[s][m]['array_size']))
1418 indent = ' '
1420 sh_funcs.append('%sstructSize += (sizeof(%s*) + %s(pStruct->%s[i]));' % (indent, self.struct_dict[s][m]['type'], self._get_size_helper_func_name(self.struct_dict[s][m]['type']), self.struct_dict[s][m]['name']))
1422 sh_funcs.append('%sstructSize += (sizeof(char*) + (sizeof(char) * (1 + strlen(pStruct->%s[i]))));' % (indent, self.struct_dict[s][m]['name']))
1423 indent = ' '
1424 sh_funcs.append('%s}' % (indent))
1428 sh_funcs.append('%suint32_t i = 0;' % (indent))
1430 sh_funcs.append('%sfor (i = 0; i < pStruct->%s; i++) {' % (indent, self.struct_dict[s][m]['array_size']))
1431 indent = ' '
1432 sh_funcs.append('%sstructSize += %s(&pStruct->%s[i]);' % (indent, self._get_size_helper_func_name(self.struct_dict[s][m]['type']), self.struct_dict[s][m]['name']))
1433 indent = ' '
1434 sh_funcs.append('%s}' % (indent))
1436 sh_funcs.append('%sstructSize += pStruct->%s*sizeof(%s);' % (indent, self.struct_dict[s][m]['array_size'], self.struct_dict[s][m]['type']))
1439 sh_funcs.append('%sstructSize += (pStruct->%s != NULL) ? sizeof(%s)*(1+strlen(pStruct->%s)) : 0;' % (indent, self.struct_dict[s][m]['name'], self.struct_dict[s][m]['type'], self.struct_dict[s][m]['name']))
1441 sh_funcs.append('%sstructSize += %s(pStruct->%s);' % (indent, self._get_size_helper_func_name(self.struct_dict[s][m]['type']), self.struct_dict[s][m]['name']))
1444 sh_funcs.append('%sstructSize += sizeof(%s);' % (indent, self.struct_dict[s][m]['type']))
1446 sh_funcs.append('%sstructSize += pStruct->%s;' % (indent, self.struct_dict[s][m]['name']))
1448 indent = ' '
1449 sh_funcs.append('%s}' % (indent))
1450 sh_funcs.append("%sreturn structSize;\n}" % (indent))
1459 indent = ' '
1460 sh_funcs.append('%s// Just use VkApplicationInfo as struct until actual type is resolved' % (indent))
1461 sh_funcs.append('%sVkApplicationInfo* pNext = (VkApplicationInfo*)pStruct;' % (indent))
1462 sh_funcs.append('%ssize_t structSize = 0;' % (indent))
1464 sh_funcs.append('%swhile (pNext) {' % (indent))
1465 indent = ' '
1466 sh_funcs.append('%sswitch (pNext->sType) {' % (indent))
1467 indent += ' '
1475 sh_funcs.append('%scase %s:' % (indent, v))
1476 sh_funcs.append('%s{' % (indent))
1477 indent += ' '
1478 sh_funcs.append('%sstructSize += %s((%s*)pNext);' % (indent, self._get_size_helper_func_name(struct_name), struct_name))
1479 sh_funcs.append('%sbreak;' % (indent))
1480 indent = indent[:-4]
1481 sh_funcs.append('%s}' % (indent))
1482 sh_funcs.append('%sdefault:' % (indent))
1483 indent += ' '
1484 sh_funcs.append('%sassert(0);' % (indent))
1485 sh_funcs.append('%sstructSize += 0;' % (indent))
1486 indent = indent[:-4]
1487 indent = indent[:-4]
1488 sh_funcs.append('%s}' % (indent))
1490 sh_funcs.append('%spNext = (VkApplicationInfo*)pNext->pNext;' % (indent))
1491 indent = indent[:-4]
1492 sh_funcs.append('%s}' % (indent))
1493 sh_funcs.append('%sreturn structSize;\n}' % indent)
1538 get_set.append(" void set_indent(uint32_t indent) { m_indent = indent; }\n")