pub struct GpuRequest {
pub backends: Backends,
pub power_preference: PowerPreference,
pub device_name: Option<String>,
pub required_features: Features,
pub optional_features: Features,
pub limits: LimitsPolicy,
}Expand description
Device acquisition options.
Fields§
§backends: Backends§power_preference: PowerPreference§device_name: Option<String>Case-insensitive substring of AdapterInfo::name.
required_features: FeaturesFeatures the device must offer.
optional_features: FeaturesFeatures used only when the adapter offers them.
limits: LimitsPolicyImplementations§
Source§impl GpuRequest
impl GpuRequest
pub const PROFILING_FEATURES: Features
Sourcepub const NATIVE_BACKENDS: Backends
pub const NATIVE_BACKENDS: Backends
The native APIs this engine runs on.
pub fn adapter_named(name: impl Into<String>) -> Self
Sourcepub fn minimum_limits() -> Self
pub fn minimum_limits() -> Self
Request GpuContext::MINIMUM_LIMITS rather than the hardware maximum.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuRequest
impl RefUnwindSafe for GpuRequest
impl Send for GpuRequest
impl Sync for GpuRequest
impl Unpin for GpuRequest
impl UnsafeUnpin for GpuRequest
impl UnwindSafe for GpuRequest
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