pub unsafe fn device_properties(
instance: &Instance,
version: u32,
physical_device: PhysicalDevice,
) -> VkResult<DeviceProperties<'static>>Expand description
Collects device properties from vulkanalia’s Instance for the specified
physical device, required to create GpuAllocator.
§Safety
The following must be true:
versionmust not be higher than theapi_versionof theinstance.physical_devicemust be queried from anInstanceassociated with thisinstance.- Even if returned properties’ field
buffer_device_addressis set to true, featurePhysicalDeviceBufferDeviceAddressFeatures::buffer_derive_addressmust be enabled explicitly on device creation and extension “VK_KHR_buffer_device_address” for Vulkan prior 1.2. Otherwise the field must be set to false before passing toGpuAllocator::new.