MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / GpuDumpQueueProps

Function GpuDumpQueueProps

vulkaninfo/vulkaninfo.cpp:406–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void 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

Callers 1

DumpGpuFunction · 0.85

Calls 7

DumpVkExtent3DFunction · 0.85
VkQueueFlagsStringFunction · 0.85
TypeMethod · 0.80
PrintKeyValueMethod · 0.80
PrintKeyStringMethod · 0.80
AddNewlineMethod · 0.80

Tested by

no test coverage detected