pub struct DeviceBuilder<'a> { /* private fields */ }

Implementations

Explicitly set the driver_type. This is not necessary except to trigger the other sanity checks in the builder methods if you really want a specific DriverType to be passed.

panics

Panics if adapter or software_module has already been specified and the passed driver_type is not the required value for those configurations.

Instructs Direct3D to create the device on the specified adapter. This implicitly sets driver_type to Unknown if it hasn’t been set yet.

panics

Panics if driver_type has already been set to a value other than Unknown

Pass additional flags to CreateDevice. None are specified by default.

panics

Panics if CreateDeviceFlags::SINGLETHREADED is set. This is not supported at this time. You can open a pull request if this feature is important to you.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.