Lines Matching refs:info

126                    GpuInfo& info) {  in GatherGpuInfo()  argument
130 vkGetPhysicalDeviceProperties(gpu, &info.properties); in GatherGpuInfo()
131 vkGetPhysicalDeviceMemoryProperties(gpu, &info.memory); in GatherGpuInfo()
132 vkGetPhysicalDeviceFeatures(gpu, &info.features); in GatherGpuInfo()
135 info.queue_families.resize(count); in GatherGpuInfo()
137 info.queue_families.data()); in GatherGpuInfo()
143 info.layers.resize(count); in GatherGpuInfo()
145 vkEnumerateDeviceLayerProperties(gpu, &count, info.layers.data()); in GatherGpuInfo()
149 info.layer_extensions.resize(info.layers.size()); in GatherGpuInfo()
151 EnumerateDeviceExtensions(gpu, nullptr, &info.extensions); in GatherGpuInfo()
152 for (size_t i = 0; i < info.layers.size(); i++) { in GatherGpuInfo()
153 EnumerateDeviceExtensions(gpu, info.layers[i].layerName, in GatherGpuInfo()
154 &info.layer_extensions[i]); in GatherGpuInfo()
163 bool available = HasExtension(info.extensions, desired_ext); in GatherGpuInfo()
165 for (size_t i = 0; !available && i < info.layer_extensions.size(); in GatherGpuInfo()
167 available = HasExtension(info.layer_extensions[i], desired_ext); in GatherGpuInfo()
202 .pEnabledFeatures = &info.features, in GatherGpuInfo()
210 void GatherInfo(VulkanInfo* info, const Options& options) { in GatherInfo() argument
218 info->layers.resize(count); in GatherInfo()
220 vkEnumerateInstanceLayerProperties(&count, info->layers.data()); in GatherInfo()
224 info->layer_extensions.resize(info->layers.size()); in GatherInfo()
226 EnumerateInstanceExtensions(nullptr, &info->extensions); in GatherInfo()
227 for (size_t i = 0; i < info->layers.size(); i++) { in GatherInfo()
228 EnumerateInstanceExtensions(info->layers[i].layerName, in GatherInfo()
229 &info->layer_extensions[i]); in GatherInfo()
239 bool available = HasExtension(info->extensions, desired_ext); in GatherInfo()
241 for (size_t i = 0; !available && i < info->layer_extensions.size(); in GatherInfo()
244 HasExtension(info->layer_extensions[i], desired_ext); in GatherInfo()
297 info->gpus.resize(num_gpus); in GatherInfo()
299 GatherGpuInfo(gpus[i], options, info->gpus.at(i)); in GatherInfo()
489 void PrintGpuInfo(const GpuInfo& info, const Options& options, size_t indent) { in PrintGpuInfo() argument
494 info.properties.deviceName, in PrintGpuInfo()
495 VkPhysicalDeviceTypeStr(info.properties.deviceType), in PrintGpuInfo()
496 VK_VERSION_MAJOR(info.properties.apiVersion), in PrintGpuInfo()
497 VK_VERSION_MINOR(info.properties.apiVersion), in PrintGpuInfo()
498 VK_VERSION_PATCH(info.properties.apiVersion), in PrintGpuInfo()
499 info.properties.driverVersion, info.properties.vendorID, in PrintGpuInfo()
500 info.properties.deviceID); in PrintGpuInfo()
502 for (uint32_t heap = 0; heap < info.memory.memoryHeapCount; heap++) { in PrintGpuInfo()
503 if ((info.memory.memoryHeaps[heap].flags & in PrintGpuInfo()
508 info.memory.memoryHeaps[heap].size / 0x100000, in PrintGpuInfo()
509 info.memory.memoryHeaps[heap].size, strbuf.str().c_str()); in PrintGpuInfo()
512 for (uint32_t type = 0; type < info.memory.memoryTypeCount; type++) { in PrintGpuInfo()
513 if (info.memory.memoryTypes[type].heapIndex != heap) in PrintGpuInfo()
516 info.memory.memoryTypes[type].propertyFlags; in PrintGpuInfo()
533 for (uint32_t family = 0; family < info.queue_families.size(); family++) { in PrintGpuInfo()
534 const VkQueueFamilyProperties& qprops = info.queue_families[family]; in PrintGpuInfo()
555 PrintAllFeatures(Indent(indent + 2), info.features); in PrintGpuInfo()
557 PrintSupportedFeatures(Indent(indent + 2), info.features); in PrintGpuInfo()
560 printf("%sExtensions [%zu]:\n", Indent(indent + 1), info.extensions.size()); in PrintGpuInfo()
561 if (!info.extensions.empty()) in PrintGpuInfo()
562 PrintExtensions(info.extensions, options, indent + 2); in PrintGpuInfo()
563 printf("%sLayers [%zu]:\n", Indent(indent + 1), info.layers.size()); in PrintGpuInfo()
564 if (!info.layers.empty()) in PrintGpuInfo()
565 PrintLayers(info.layers, info.layer_extensions, options, indent + 2); in PrintGpuInfo()
568 void PrintInfo(const VulkanInfo& info, const Options& options) { in PrintInfo() argument
573 info.extensions.size()); in PrintInfo()
574 PrintExtensions(info.extensions, options, indent + 1); in PrintInfo()
575 printf("%sInstance Layers [%zu]:\n", Indent(indent), info.layers.size()); in PrintInfo()
576 if (!info.layers.empty()) in PrintInfo()
577 PrintLayers(info.layers, info.layer_extensions, options, indent + 1); in PrintInfo()
579 printf("%sPhysicalDevices [%zu]:\n", Indent(indent), info.gpus.size()); in PrintInfo()
580 for (const auto& gpu : info.gpus) in PrintInfo()
630 VulkanInfo info; in main() local
631 GatherInfo(&info, options); in main()
632 PrintInfo(info, options); in main()