Struct wgpu_types::InstanceDescriptor
source · 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.
Trait Implementations§
source§impl Debug for InstanceDescriptor
impl Debug for InstanceDescriptor
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