Struct VulkanBackendOptions
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§
§impl VulkanBackendOptions
impl VulkanBackendOptions
pub const fn default() -> VulkanBackendOptions
pub const fn default() -> VulkanBackendOptions
This function is identical to Default::default() except that it is a const fn.
§impl VulkanBackendOptions
impl VulkanBackendOptions
pub fn from_env_or_default() -> VulkanBackendOptions
pub fn from_env_or_default() -> VulkanBackendOptions
Choose Vulkan backend options by calling from_env on every field.
See those methods for more information.
pub fn with_env(self) -> VulkanBackendOptions
pub fn with_env(self) -> VulkanBackendOptions
Takes the given options, modifies them based on the environment variables, and returns the result.
This is equivalent to calling with_env on every field.
Trait Implementations§
§impl Clone for VulkanBackendOptions
impl Clone for VulkanBackendOptions
§fn clone(&self) -> VulkanBackendOptions
fn clone(&self) -> VulkanBackendOptions
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 more§impl Debug for VulkanBackendOptions
impl Debug for VulkanBackendOptions
§impl Default for VulkanBackendOptions
impl Default for VulkanBackendOptions
§fn default() -> VulkanBackendOptions
fn default() -> VulkanBackendOptions
Returns the “default value” for a type. Read more
§impl PartialEq for VulkanBackendOptions
impl PartialEq for VulkanBackendOptions
§fn eq(&self, other: &VulkanBackendOptions) -> bool
fn eq(&self, other: &VulkanBackendOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VulkanBackendOptions
impl StructuralPartialEq for VulkanBackendOptions
Auto Trait Implementations§
impl Freeze for VulkanBackendOptions
impl RefUnwindSafe for VulkanBackendOptions
impl Send for VulkanBackendOptions
impl Sync for VulkanBackendOptions
impl Unpin for VulkanBackendOptions
impl UnsafeUnpin for VulkanBackendOptions
impl UnwindSafe for VulkanBackendOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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