pub struct VulkanDeviceInfo {
pub device_name: String,
pub vendor_id: u32,
pub device_type: VulkanDeviceType,
pub max_compute_shared_memory_size: usize,
pub max_compute_work_group_count: [u32; 3],
pub max_compute_work_group_invocations: u32,
pub max_compute_work_group_size: [u32; 3],
pub subgroup_size: u32,
pub supports_subgroups: bool,
pub supports_int8: bool,
pub supports_int16: bool,
pub supports_float64: bool,
}Expand description
Vulkan device information
Fields§
§device_name: String§vendor_id: u32§device_type: VulkanDeviceType§max_compute_work_group_count: [u32; 3]§max_compute_work_group_invocations: u32§max_compute_work_group_size: [u32; 3]§subgroup_size: u32§supports_subgroups: bool§supports_int8: bool§supports_int16: bool§supports_float64: boolImplementations§
Source§impl VulkanDeviceInfo
impl VulkanDeviceInfo
Sourcepub fn optimal_workgroup_size(&self) -> usize
pub fn optimal_workgroup_size(&self) -> usize
Get optimal work group size for SpMV
Trait Implementations§
Source§impl Clone for VulkanDeviceInfo
impl Clone for VulkanDeviceInfo
Source§fn clone(&self) -> VulkanDeviceInfo
fn clone(&self) -> VulkanDeviceInfo
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 VulkanDeviceInfo
impl RefUnwindSafe for VulkanDeviceInfo
impl Send for VulkanDeviceInfo
impl Sync for VulkanDeviceInfo
impl Unpin for VulkanDeviceInfo
impl UnsafeUnpin for VulkanDeviceInfo
impl UnwindSafe for VulkanDeviceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more