Type Alias wgpu_core::device::DeviceDescriptor
source · pub type DeviceDescriptor<'a> = DeviceDescriptor<Label<'a>>;
Aliased Type§
struct DeviceDescriptor<'a> {
pub label: Option<Cow<'a, str>>,
pub required_features: Features,
pub required_limits: Limits,
}
Fields§
§label: Option<Cow<'a, str>>
Debug label for the device.
required_features: Features
Specifies the features that are required by the device request. The request will fail if the adapter cannot provide these features.
Exactly the specified set of features, and no more or less, will be allowed in validation of API calls on the resulting device.
required_limits: Limits
Specifies the limits that are required by the device request. The request will fail if the adapter cannot provide these limits.
Exactly the specified limits, and no better or worse, will be allowed in validation of API calls on the resulting device.