pub struct VulkanBackendOptions {
pub swapchain_kind: VulkanSwapchainKind,
pub agility_sdk: Option<Dx12AgilitySDK>,
}Expand description
Configuration for the Vulkan backend.
Part of BackendOptions.
Fields§
§swapchain_kind: VulkanSwapchainKindWhich kind of swapchain to use.
agility_sdk: Option<Dx12AgilitySDK>D3D12 Agility SDK to load for the interop device backing a DXGI swapchain_kind.
A Dxgi* swapchain kind presents through an interop D3D12 device; this is the same
Dx12AgilitySDK configuration the DX12 backend uses, applied to that device. Ignored for
VulkanSwapchainKind::Native.
Implementations§
Source§impl VulkanBackendOptions
impl VulkanBackendOptions
Sourcepub const fn default() -> Self
pub const fn default() -> Self
This function is identical to Default::default() except that it is a const fn.
Source§impl VulkanBackendOptions
impl VulkanBackendOptions
Sourcepub fn from_env_or_default() -> Self
pub fn from_env_or_default() -> Self
Choose Vulkan backend options by calling from_env on every field.
See those methods for more information.
Trait Implementations§
Source§impl Clone for VulkanBackendOptions
impl Clone for VulkanBackendOptions
Source§impl Debug for VulkanBackendOptions
impl Debug for VulkanBackendOptions
Source§impl Default for VulkanBackendOptions
impl Default for VulkanBackendOptions
impl Eq for VulkanBackendOptions
Source§impl PartialEq for VulkanBackendOptions
impl PartialEq for VulkanBackendOptions
impl StructuralPartialEq for VulkanBackendOptions
Auto Trait Implementations§
impl Forget for VulkanBackendOptions
impl Freeze for VulkanBackendOptions
impl Move for VulkanBackendOptions
impl RefUnwindSafe for VulkanBackendOptions
impl Send for VulkanBackendOptionswhere
RawVecInner: Send,
impl Sync for VulkanBackendOptionswhere
RawVecInner: Sync,
impl Unpin for VulkanBackendOptions
impl UnsafeUnpin for VulkanBackendOptions
impl UnwindSafe for VulkanBackendOptionswhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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