pub struct VulkanPlatformSpecificOptions {
pub required_instance_extensions: Vec<String>,
pub get_proc_address_delegate: Option<VkGetInstanceProcAddressDelegate>,
pub device_check_surface_factory: Option<VulkanDeviceCheckSurfaceFactory>,
pub platform_features: HashMap<TypeId, Arc<dyn Any + Send + Sync>>,
}Expand description
What a windowing platform adds to the options of the application.
Fields§
§required_instance_extensions: Vec<String>The instance extensions the surfaces of the platform need.
get_proc_address_delegate: Option<VkGetInstanceProcAddressDelegate>How the platform finds the entry points of Vulkan.
device_check_surface_factory: Option<VulkanDeviceCheckSurfaceFactory>Creates a surface the physical devices are asked about: a device whose queues cannot present to it is not taken.
platform_features: HashMap<TypeId, Arc<dyn Any + Send + Sync>>The features every context of the platform has, by the type that
names the feature. A value holds an Arc of that type (for
TypeId::of::<dyn IFoo>() an Arc<dyn IFoo>).
Implementations§
Source§impl VulkanPlatformSpecificOptions
impl VulkanPlatformSpecificOptions
Sourcepub fn set_khr_surface_factory(
&mut self,
factory: Arc<dyn IVulkanKhrSurfacePlatformSurfaceFactory>,
)
pub fn set_khr_surface_factory( &mut self, factory: Arc<dyn IVulkanKhrSurfacePlatformSurfaceFactory>, )
Registers the factory of the surfaces of the platform among the platform features.
Sourcepub fn khr_surface_factory(
&self,
) -> Option<Arc<dyn IVulkanKhrSurfacePlatformSurfaceFactory>>
pub fn khr_surface_factory( &self, ) -> Option<Arc<dyn IVulkanKhrSurfacePlatformSurfaceFactory>>
The factory of the surfaces of the platform, when one is registered.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VulkanPlatformSpecificOptions
impl !UnwindSafe for VulkanPlatformSpecificOptions
impl Freeze for VulkanPlatformSpecificOptions
impl Send for VulkanPlatformSpecificOptions
impl Sync for VulkanPlatformSpecificOptions
impl Unpin for VulkanPlatformSpecificOptions
impl UnsafeUnpin for VulkanPlatformSpecificOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more