pub trait IVulkanDeviceFactory: Send + Sync {
// Required methods
fn uses_shaded_device(&self) -> bool;
fn get_shared_device(
&self,
platform_options: &VulkanPlatformSpecificOptions,
) -> Arc<dyn IVulkanDevice> ⓘ;
fn create_device(
&self,
platform_options: &VulkanPlatformSpecificOptions,
) -> Result<Arc<dyn IVulkanDevice>, VulkanException>;
}Expand description
Where the devices of the contexts come from.
Required Methods§
Sourcefn uses_shaded_device(&self) -> bool
fn uses_shaded_device(&self) -> bool
Whether all contexts share one device.
Sourcefn create_device(
&self,
platform_options: &VulkanPlatformSpecificOptions,
) -> Result<Arc<dyn IVulkanDevice>, VulkanException>
fn create_device( &self, platform_options: &VulkanPlatformSpecificOptions, ) -> Result<Arc<dyn IVulkanDevice>, VulkanException>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".