pub struct BackendOptions {
pub gl: GlBackendOptions,
pub dx12: Dx12BackendOptions,
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.
noop: NoopBackendOptionsOptions for the noop backend, Backend::Noop.
Implementations§
Source§impl BackendOptions
impl BackendOptions
Sourcepub fn from_env_or_default() -> BackendOptions
pub fn from_env_or_default() -> BackendOptions
Choose backend options by calling from_env on every field.
See those methods for more information.
Sourcepub fn with_env(self) -> BackendOptions
pub fn with_env(self) -> BackendOptions
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§
Source§impl Clone for BackendOptions
impl Clone for BackendOptions
Source§fn clone(&self) -> BackendOptions
fn clone(&self) -> BackendOptions
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 Debug for BackendOptions
impl Debug for BackendOptions
Source§impl Default for BackendOptions
impl Default for BackendOptions
Source§fn default() -> BackendOptions
fn default() -> BackendOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for BackendOptions
impl Freeze for BackendOptions
impl Move for BackendOptions
impl RefUnwindSafe for BackendOptions
impl Send for BackendOptionswhere
RawVecInner: Send,
impl Sync for BackendOptionswhere
RawVecInner: Sync,
impl Unpin for BackendOptions
impl UnsafeUnpin for BackendOptions
impl UnwindSafe for BackendOptionswhere
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