Struct wgpu::InstanceDescriptor
source · pub struct InstanceDescriptor {
pub backends: Backends,
pub dx12_shader_compiler: Dx12Compiler,
}
Expand description
Options for creating an instance.
Fields§
§backends: Backends
Which Backends
to enable.
dx12_shader_compiler: Dx12Compiler
Which DX12 shader compiler to use.
Trait Implementations§
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 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