pub struct DeviceCaps {
pub name: String,
pub backend: String,
pub device_type: String,
pub max_storage_buffer_binding_size: u64,
pub max_buffer_size: u64,
pub max_compute_workgroup_size_x: u32,
pub max_compute_invocations_per_workgroup: u32,
pub features: String,
}Expand description
Hardware capabilities consumed by the application-layer device planner (sharding, KV budget, prefill chunk sizing). Serialized to JSON across the FFI boundary.
Fields§
§name: StringHuman-readable adapter name (e.g. “Apple M3 Pro”).
backend: StringGraphics backend in use (“Metal”, “Vulkan”, “Dx12”, “Gl”, …).
device_type: StringDevice type (“IntegratedGpu”, “DiscreteGpu”, …).
max_storage_buffer_binding_size: u64max_storage_buffer_binding_size: the hard cap on a single GPU
buffer — the sharding limit on mobile devices.
max_buffer_size: u64max_buffer_size: the largest single allocation the driver allows.
max_compute_workgroup_size_x: u32Largest compute workgroup dimension.
max_compute_invocations_per_workgroup: u32max_compute_invocations_per_workgroup.
features: StringDebug dump of the adapter’s enabled feature set (wgpu 29 no longer
exposes WebGPU extension features like SHADER_F16 through the
public adapter API, so we surface the raw list for the planner).
Trait Implementations§
Source§impl Clone for DeviceCaps
impl Clone for DeviceCaps
Source§fn clone(&self) -> DeviceCaps
fn clone(&self) -> DeviceCaps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more