| 404 | } |
| 405 | |
| 406 | void GpuDumpQueueProps(Printer &p, AppGpu &gpu, const AppQueueFamilyProperties &queue) { |
| 407 | VkQueueFamilyProperties props = queue.props; |
| 408 | p.SetSubHeader().SetElementIndex(static_cast<int>(queue.queue_index)); |
| 409 | ObjectWrapper obj_queue_props(p, "queueProperties"); |
| 410 | p.SetMinKeyWidth(27); |
| 411 | if (p.Type() == OutputType::vkconfig_output) { |
| 412 | DumpVkExtent3D(p, "minImageTransferGranularity", props.minImageTransferGranularity); |
| 413 | } else { |
| 414 | p.PrintKeyValue("minImageTransferGranularity", props.minImageTransferGranularity); |
| 415 | } |
| 416 | p.PrintKeyValue("queueCount", props.queueCount); |
| 417 | p.PrintKeyString("queueFlags", VkQueueFlagsString(props.queueFlags)); |
| 418 | p.PrintKeyValue("timestampValidBits", props.timestampValidBits); |
| 419 | |
| 420 | if (!queue.can_present) { |
| 421 | p.PrintKeyString("present support", "false"); |
| 422 | } else if (queue.can_always_present) { |
| 423 | p.PrintKeyString("present support", "true"); |
| 424 | } else { |
| 425 | size_t width = 0; |
| 426 | for (const auto &support : queue.present_support) { |
| 427 | if (support.first.size() > width) width = support.first.size(); |
| 428 | } |
| 429 | ObjectWrapper obj_present_support(p, "present support"); |
| 430 | p.SetMinKeyWidth(width); |
| 431 | for (const auto &support : queue.present_support) { |
| 432 | p.PrintKeyString(support.first, support.second ? "true" : "false"); |
| 433 | } |
| 434 | } |
| 435 | chain_iterator_queue_properties2(p, gpu, queue.pNext); |
| 436 | |
| 437 | p.AddNewline(); |
| 438 | } |
| 439 | |
| 440 | // This prints a number of bytes in a human-readable format according to prefixes of the International System of Quantities (ISQ), |
| 441 | // defined in ISO/IEC 80000. The prefixes used here are not SI prefixes, but rather the binary prefixes based on powers of 1024 |
no test coverage detected