pub struct VulkanInstanceCreationOptions {
pub custom_get_proc_address_delegate: Option<VkGetInstanceProcAddressDelegate>,
pub application_name: Option<String>,
pub vulkan_version: Version,
pub instance_extensions: Vec<String>,
pub enabled_layers: Vec<String>,
pub use_debug: bool,
pub require_surface_extension: bool,
}Fields§
§custom_get_proc_address_delegate: Option<VkGetInstanceProcAddressDelegate>Replaces the way the platform finds the entry points of Vulkan.
application_name: Option<String>Sets the application name of the vulkan instance
vulkan_version: VersionSpecifies the vulkan api version to use
instance_extensions: Vec<String>Specifies additional extensions to enable if available on the instance
enabled_layers: Vec<String>Specifies layers to enable if available on the instance
use_debug: boolEnables the debug layer
require_surface_extension: boolRequires and enables VK_KHR_surface on the created instance. Disable for offscreen-only rendering with drivers that don’t expose the extension.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VulkanInstanceCreationOptions
impl !UnwindSafe for VulkanInstanceCreationOptions
impl Freeze for VulkanInstanceCreationOptions
impl Send for VulkanInstanceCreationOptions
impl Sync for VulkanInstanceCreationOptions
impl Unpin for VulkanInstanceCreationOptions
impl UnsafeUnpin for VulkanInstanceCreationOptions
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