initialize_pools

Function initialize_pools 

Source
pub unsafe fn initialize_pools(
    device: VkDevice,
    physical_device: VkPhysicalDevice,
) -> Result<(), IcdError>
Expand description

Initialize pools for a device

ยงSafety

This function is unsafe because:

  • Both device and physical_device must be valid Vulkan handles
  • Calls vkGetPhysicalDeviceMemoryProperties through ICD
  • The device must have been created from the physical device
  • Pools must be cleaned up before device destruction
  • Thread safety is provided by the global POOL_ALLOCATOR mutex