pub struct BackendOptions {
pub gl: GlBackendOptions,
pub dx12: Dx12BackendOptions,
}
Expand description
Options that are passed to a given backend.
Fields§
§gl: GlBackendOptions
Options for the OpenGL/OpenGLES backend.
dx12: Dx12BackendOptions
Options for the DX12 backend.
Implementations§
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§fn clone(&self) -> BackendOptions
fn clone(&self) -> BackendOptions
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for BackendOptions
impl RefUnwindSafe for BackendOptions
impl Send for BackendOptions
impl Sync for BackendOptions
impl Unpin for BackendOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)