Skip to content

Commit

Permalink
Add comments to differentiate vkEnumeratePhysicalDeviceGroups usages
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperZielinski-Intel authored and baldurk committed Mar 5, 2024
1 parent e594d28 commit 10d4023
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,13 +920,15 @@ VkResult WrappedVulkan::vkEnumeratePhysicalDeviceGroups(
uint32_t physicalDevicesNumber = 0;
vkEnumeratePhysicalDevices(instance, &physicalDevicesNumber, NULL);

// Return number of available device groups.
// vkEnumeratePhysicalDeviceGroups - Return number of available physical device groups.
if(pPhysicalDeviceGroupProperties == NULL)
{
*pPhysicalDeviceGroupCount = physicalDevicesNumber;
return VK_SUCCESS;
}

// vkEnumeratePhysicalDeviceGroups - Query properties of available physical device groups.

// Number of physical device groups to query.
*pPhysicalDeviceGroupCount = RDCMIN(*pPhysicalDeviceGroupCount, physicalDevicesNumber);

Expand Down

0 comments on commit 10d4023

Please sign in to comment.