Skip to main content

VulkanDeviceCheckSurfaceFactory

Type Alias VulkanDeviceCheckSurfaceFactory 

Source
pub type VulkanDeviceCheckSurfaceFactory = Arc<dyn Fn(&Arc<dyn IVulkanInstance>) -> Result<u64, VulkanException> + Send + Sync>;
Expand description

Creates a VkSurfaceKHR on an instance, for asking the physical devices whether they can present. Zero stands for no surface: the devices are not asked then. A failure is the failure of the creation of the device.

Aliased Typeยง

pub struct VulkanDeviceCheckSurfaceFactory { /* private fields */ }