Searched refs:gpu_count (Results 1 - 5 of 5) sorted by relevance

/external/vulkan-validation-layers/demos/
H A Dvulkaninfo.c2292 uint32_t gpu_count; local
2336 err = vkEnumeratePhysicalDevices(inst.instance, &gpu_count, NULL);
2338 objs = malloc(sizeof(objs[0]) * gpu_count);
2340 err = vkEnumeratePhysicalDevices(inst.instance, &gpu_count, objs);
2343 gpus = malloc(sizeof(gpus[0]) * gpu_count);
2345 for (uint32_t i = 0; i < gpu_count; i++) {
2387 fprintf(out, "\t\t\t\t\t<details><summary>Devices count = <div class='val'>%d</div></summary>\n", gpu_count);
2389 printf("\tDevices \tcount = %d\n", gpu_count);
2391 for (uint32_t j = 0; j < gpu_count; j++) {
2423 if (gpu_count >
[all...]
H A Dcube.c3220 uint32_t gpu_count; local
3239 /* Make initial call to query gpu_count, then second call for gpu info*/
3240 err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, NULL);
3241 assert(!err && gpu_count > 0);
3243 if (gpu_count > 0) {
3244 VkPhysicalDevice *physical_devices = malloc(sizeof(VkPhysicalDevice) * gpu_count);
3245 err = vkEnumeratePhysicalDevices(demo->inst, &gpu_count, physical_devices);
H A Dcube.cpp1213 /* Make initial call to query gpu_count, then second call for gpu info*/
1214 uint32_t gpu_count;
1215 result = inst.enumeratePhysicalDevices(&gpu_count, nullptr);
1217 assert(gpu_count > 0);
1219 if (gpu_count > 0) {
1220 std::unique_ptr<vk::PhysicalDevice[]> physical_devices(new vk::PhysicalDevice[gpu_count]);
1221 result = inst.enumeratePhysicalDevices(&gpu_count, physical_devices.get());
/external/vulkan-validation-layers/tests/
H A Dvkrenderframework.cpp195 err = vkEnumeratePhysicalDevices(inst, &this->gpu_count, NULL);
196 ASSERT_LE(this->gpu_count, ARRAY_SIZE(objs)) << "Too many gpus";
198 err = vkEnumeratePhysicalDevices(inst, &this->gpu_count, objs);
200 ASSERT_GE(this->gpu_count, (uint32_t)1) << "No GPU available";
H A Dvkrenderframework.h110 uint32_t gpu_count; member in class:VkRenderFramework

Completed in 804 milliseconds