pub struct GpuDeviceInfo {Show 14 fields
pub index: usize,
pub name: String,
pub backend: Backend,
pub device_type: DeviceType,
pub max_buffer_size: u64,
pub max_texture_dimension_1d: u32,
pub max_texture_dimension_2d: u32,
pub max_texture_dimension_3d: u32,
pub max_compute_workgroup_size_x: u32,
pub max_compute_workgroup_size_y: u32,
pub max_compute_workgroup_size_z: u32,
pub max_compute_workgroups_per_dimension: u32,
pub max_bind_groups: u32,
pub memory_size: Option<u64>,
}Expand description
GPU device information
Fields§
§index: usizeDevice index
name: StringDevice name
backend: BackendBackend type (Vulkan, Metal, DX12, etc.)
device_type: DeviceTypeDevice type (DiscreteGpu, IntegratedGpu, VirtualGpu, Cpu)
max_buffer_size: u64Maximum buffer size
max_texture_dimension_1d: u32Maximum texture dimension 1D
max_texture_dimension_2d: u32Maximum texture dimension 2D
max_texture_dimension_3d: u32Maximum texture dimension 3D
max_compute_workgroup_size_x: u32Maximum compute workgroup size X
max_compute_workgroup_size_y: u32Maximum compute workgroup size Y
max_compute_workgroup_size_z: u32Maximum compute workgroup size Z
max_compute_workgroups_per_dimension: u32Maximum compute workgroups per dimension
max_bind_groups: u32Maximum bind groups
memory_size: Option<u64>Memory size (estimated)
Trait Implementations§
Source§impl Clone for GpuDeviceInfo
impl Clone for GpuDeviceInfo
Source§fn clone(&self) -> GpuDeviceInfo
fn clone(&self) -> GpuDeviceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GpuDeviceInfo
impl RefUnwindSafe for GpuDeviceInfo
impl Send for GpuDeviceInfo
impl Sync for GpuDeviceInfo
impl Unpin for GpuDeviceInfo
impl UnsafeUnpin for GpuDeviceInfo
impl UnwindSafe for GpuDeviceInfo
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