Type Alias wgpu::DeviceDescriptor
source · pub type DeviceDescriptor<'a> = DeviceDescriptor<Label<'a>>;Expand description
Describes a Device.
For use with Adapter::request_device.
Corresponds to WebGPU GPUDeviceDescriptor.
Aliased Type§
struct DeviceDescriptor<'a> {
pub label: Option<&'a str>,
pub features: Features,
pub limits: Limits,
}Fields§
§label: Option<&'a str>Debug label for the device.
features: FeaturesFeatures that the device should support. If any feature is not supported by the adapter, creating a device will panic.
limits: LimitsLimits that the device should support. If any limit is “better” than the limit exposed by the adapter, creating a device will panic.