pub struct VulkanDeviceOptions<'a> {
pub presentation: Option<bool>,
pub device_uuid: Option<&'a [u8]>,
pub device_luid: Option<&'a [u8]>,
}Expand description
Options for VulkanDeviceHandle::create().
See mln_vulkan_device_options in the
C API reference.
Fields§
§presentation: Option<bool>Whether the device can present to a window. The instance then enables VK_KHR_surface and the platform’s surface extensions, and the device enables VK_KHR_swapchain. Defaults to false.
device_uuid: Option<&'a [u8]>The 16-byte deviceUUID of the GPU to use, as
VkPhysicalDeviceIDProperties reports it.
device_luid: Option<&'a [u8]>The 8-byte deviceLUID of the GPU to use, as
VkPhysicalDeviceIDProperties reports it. On Windows, this is the GPU’s
DXGI adapter LUID.
Trait Implementations§
Source§impl<'a> Clone for VulkanDeviceOptions<'a>
impl<'a> Clone for VulkanDeviceOptions<'a>
Source§fn clone(&self) -> VulkanDeviceOptions<'a>
fn clone(&self) -> VulkanDeviceOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for VulkanDeviceOptions<'a>
impl<'a> Debug for VulkanDeviceOptions<'a>
Source§impl<'a> Default for VulkanDeviceOptions<'a>
impl<'a> Default for VulkanDeviceOptions<'a>
Source§fn default() -> VulkanDeviceOptions<'a>
fn default() -> VulkanDeviceOptions<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for VulkanDeviceOptions<'a>
impl<'a> PartialEq for VulkanDeviceOptions<'a>
impl<'a> StructuralPartialEq for VulkanDeviceOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for VulkanDeviceOptions<'a>
impl<'a> RefUnwindSafe for VulkanDeviceOptions<'a>
impl<'a> Send for VulkanDeviceOptions<'a>
impl<'a> Sync for VulkanDeviceOptions<'a>
impl<'a> Unpin for VulkanDeviceOptions<'a>
impl<'a> UnsafeUnpin for VulkanDeviceOptions<'a>
impl<'a> UnwindSafe for VulkanDeviceOptions<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more