pub struct VulkanDeviceCreationOptions {
pub device_extensions: Vec<String>,
pub prefer_discrete_gpu: bool,
pub require_compute_bit: bool,
pub require_swapchain_extension: bool,
}Fields§
§device_extensions: Vec<String>Specifies extensions to enable if available on the logical device
prefer_discrete_gpu: boolSelects the first suitable discrete gpu available
require_compute_bit: bool§require_swapchain_extension: boolRequires and enables VK_KHR_swapchain on the created device. Disable for offscreen-only rendering with drivers that don’t expose the extension.
Trait Implementations§
Source§impl Clone for VulkanDeviceCreationOptions
impl Clone for VulkanDeviceCreationOptions
Source§impl Debug for VulkanDeviceCreationOptions
impl Debug for VulkanDeviceCreationOptions
impl Eq for VulkanDeviceCreationOptions
impl StructuralPartialEq for VulkanDeviceCreationOptions
Auto Trait Implementations§
impl Freeze for VulkanDeviceCreationOptions
impl RefUnwindSafe for VulkanDeviceCreationOptions
impl Send for VulkanDeviceCreationOptions
impl Sync for VulkanDeviceCreationOptions
impl Unpin for VulkanDeviceCreationOptions
impl UnsafeUnpin for VulkanDeviceCreationOptions
impl UnwindSafe for VulkanDeviceCreationOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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