Struct rps::DeviceBuilder

source ·
pub struct DeviceBuilder { /* private fields */ }
Expand description

Helper structure to build ffi::RpsDeviceCreateInfo for a new device.

Implementations§

Create a new device builder.

Specify requirements for a single memory allocation.

Arguments
  • size - Size of the allocation in bytes.
  • alignment - Minimum alignment requirement of the allocation in bytes.

Creates a device object.

Create a device with a dummy runtime.

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.