pub struct BackendOptions {
pub gl: GlBackendOptions,
pub dx12: Dx12BackendOptions,
pub vulkan: VulkanBackendOptions,
pub noop: NoopBackendOptions,
}Expand description
Options that are passed to a given backend.
Part of InstanceDescriptor.
Fields§
§gl: GlBackendOptionsOptions for the OpenGL/OpenGLES backend, Backend::Gl.
dx12: Dx12BackendOptionsOptions for the DX12 backend, Backend::Dx12.
vulkan: VulkanBackendOptionsOptions for the Vulkan backend, Backend::Vulkan.
noop: NoopBackendOptionsOptions for the noop backend, Backend::Noop.
Implementations§
Source§impl BackendOptions
impl BackendOptions
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 BackendOptions
impl BackendOptions
Sourcepub fn from_env_or_default() -> Self
pub fn from_env_or_default() -> Self
Choose backend options by calling from_env on every field.
See those methods for more information.
Trait Implementations§
Source§impl Clone for BackendOptions
impl Clone for BackendOptions
Source§impl Debug for BackendOptions
impl Debug for BackendOptions
Source§impl Default for BackendOptions
impl Default for BackendOptions
impl Eq for BackendOptions
Source§impl PartialEq for BackendOptions
impl PartialEq for BackendOptions
impl StructuralPartialEq for BackendOptions
Auto Trait Implementations§
impl Forget for BackendOptions
impl Freeze for BackendOptions
impl Move for BackendOptions
impl RefUnwindSafe for BackendOptionswhere
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl Send for BackendOptions
impl Sync for BackendOptions
impl Unpin for BackendOptions
impl UnsafeUnpin for BackendOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
impl UnwindSafe for BackendOptions
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