pub struct InstanceDescriptor {
pub backends: Backends,
pub flags: InstanceFlags,
pub dx12_shader_compiler: Dx12Compiler,
pub gles_minor_version: Gles3MinorVersion,
}
Expand description
Options for creating an instance.
Fields§
§backends: Backends
Which Backends
to enable.
flags: InstanceFlags
Flags to tune the behavior of the instance.
dx12_shader_compiler: Dx12Compiler
Which DX12 shader compiler to use.
gles_minor_version: Gles3MinorVersion
Which OpenGL ES 3 minor version to request. Will be ignored if OpenGL is available.
Trait Implementations§
Source§impl Debug for InstanceDescriptor
impl Debug for InstanceDescriptor
Source§impl Default for InstanceDescriptor
impl Default for InstanceDescriptor
Source§fn default() -> InstanceDescriptor
fn default() -> InstanceDescriptor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstanceDescriptor
impl RefUnwindSafe for InstanceDescriptor
impl Send for InstanceDescriptor
impl Sync for InstanceDescriptor
impl Unpin for InstanceDescriptor
impl UnwindSafe for InstanceDescriptor
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