pub struct AdapterReport {
pub name: String,
pub vendor: String,
pub device_type: String,
pub backend: String,
pub driver: String,
pub max_buffer_size: u64,
pub max_storage_buffer_binding_size: u32,
pub max_compute_invocations_per_workgroup: u32,
pub max_compute_workgroup_storage_size: u32,
pub shader_f16: bool,
pub selected: bool,
}Expand description
One adapter wgpu found, with the limits that matter for the kernels.
Fields§
§name: StringAdapter name reported by the driver, e.g. "Apple M2".
vendor: StringGPU vendor from the PCI vendor id, e.g. "AMD", or the id in hex.
device_type: String"DiscreteGpu", "IntegratedGpu", "Cpu" (a software rasteriser), …
backend: StringGraphics API: "Metal", "Vulkan", "Dx12" or "Gl".
driver: StringDriver name and version, when the backend reports them.
max_buffer_size: u64Largest single buffer, in bytes.
max_storage_buffer_binding_size: u32Largest storage buffer a kernel can bind, in bytes.
max_compute_invocations_per_workgroup: u32Most threads in one workgroup.
max_compute_workgroup_storage_size: u32Workgroup shared memory, in bytes.
shader_f16: boolWhether the adapter supports f16 in shaders.
selected: boolWhether WgpuContext::new picks this adapter.
Trait Implementations§
Source§impl Clone for AdapterReport
impl Clone for AdapterReport
Source§impl Debug for AdapterReport
impl Debug for AdapterReport
Source§impl PartialEq for AdapterReport
impl PartialEq for AdapterReport
impl StructuralPartialEq for AdapterReport
Auto Trait Implementations§
impl Freeze for AdapterReport
impl RefUnwindSafe for AdapterReport
impl Send for AdapterReport
impl Sync for AdapterReport
impl Unpin for AdapterReport
impl UnsafeUnpin for AdapterReport
impl UnwindSafe for AdapterReport
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