[][src]Struct rust_gpu_tools::opencl::Device

pub struct Device {
    pub device: Device,
    // some fields omitted
}

Fields

device: Device

Implementations

impl Device[src]

pub fn brand(&self) -> Brand[src]

pub fn name(&self) -> String[src]

pub fn memory(&self) -> u64[src]

pub fn is_little_endian(&self) -> GPUResult<bool>[src]

pub fn bus_id(&self) -> Option<BusId>[src]

pub fn all() -> Vec<&'static Device>[src]

Return all available GPU devices of supported brands, ordered by brand as defined by Brand::all().

pub fn all_iter() -> impl Iterator<Item = &'static Device>[src]

pub fn by_bus_id(bus_id: BusId) -> GPUResult<&'static Device>[src]

pub fn by_brand(brand: Brand) -> Option<&'static Vec<Device>>[src]

pub fn cl_device_id(&self) -> cl_device_id[src]

Trait Implementations

impl Clone for Device[src]

impl Debug for Device[src]

impl Eq for Device[src]

impl Hash for Device[src]

impl PartialEq<Device> for Device[src]

Auto Trait Implementations

impl RefUnwindSafe for Device

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.