| 557 | } |
| 558 | |
| 559 | void GpuDumpTextFormatProperty(Printer &p, const AppGpu &gpu, PropFlags formats, const std::set<VkFormat> &format_list, |
| 560 | uint32_t counter) { |
| 561 | p.SetElementIndex(counter); |
| 562 | ObjectWrapper obj_common_group(p, "Common Format Group"); |
| 563 | IndentWrapper indent_inner(p); |
| 564 | { |
| 565 | ArrayWrapper arr_formats(p, "Formats", format_list.size()); |
| 566 | for (auto &fmt : format_list) { |
| 567 | p.SetAsType().PrintString(VkFormatString(fmt)); |
| 568 | } |
| 569 | } |
| 570 | ObjectWrapper obj(p, "Properties"); |
| 571 | if (gpu.CheckPhysicalDeviceExtensionIncluded(VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME)) { |
| 572 | DumpVkFormatFeatureFlags2(p, "linearTilingFeatures", formats.props3.linearTilingFeatures); |
| 573 | DumpVkFormatFeatureFlags2(p, "optimalTilingFeatures", formats.props3.optimalTilingFeatures); |
| 574 | DumpVkFormatFeatureFlags2(p, "bufferFeatures", formats.props3.bufferFeatures); |
| 575 | } else { |
| 576 | DumpVkFormatFeatureFlags(p, "linearTilingFeatures", formats.props.linearTilingFeatures); |
| 577 | DumpVkFormatFeatureFlags(p, "optimalTilingFeatures", formats.props.optimalTilingFeatures); |
| 578 | DumpVkFormatFeatureFlags(p, "bufferFeatures", formats.props.bufferFeatures); |
| 579 | } |
| 580 | p.AddNewline(); |
| 581 | } |
| 582 | |
| 583 | void GpuDumpToolingInfo(Printer &p, AppGpu &gpu) { |
| 584 | auto tools = GetToolingInfo(gpu); |
no test coverage detected