pub enum DeviceInfoResult {
Show 76 variants Type(DeviceType), VendorId(u32), MaxComputeUnits(u32), MaxWorkItemDimensions(u32), MaxWorkGroupSize(usize), MaxWorkItemSizes(Vec<usize>), PreferredVectorWidthChar(u32), PreferredVectorWidthShort(u32), PreferredVectorWidthInt(u32), PreferredVectorWidthLong(u32), PreferredVectorWidthFloat(u32), PreferredVectorWidthDouble(u32), MaxClockFrequency(u32), AddressBits(u32), MaxReadImageArgs(u32), MaxWriteImageArgs(u32), MaxMemAllocSize(u64), Image2dMaxWidth(usize), Image2dMaxHeight(usize), Image3dMaxWidth(usize), Image3dMaxHeight(usize), Image3dMaxDepth(usize), ImageSupport(bool), MaxParameterSize(usize), MaxSamplers(u32), MemBaseAddrAlign(u32), MinDataTypeAlignSize(u32), SingleFpConfig(DeviceFpConfig), GlobalMemCacheType(DeviceMemCacheType), GlobalMemCachelineSize(u32), GlobalMemCacheSize(u64), GlobalMemSize(u64), MaxConstantBufferSize(u64), MaxConstantArgs(u32), LocalMemType(DeviceLocalMemType), LocalMemSize(u64), ErrorCorrectionSupport(bool), ProfilingTimerResolution(usize), EndianLittle(bool), Available(bool), CompilerAvailable(bool), ExecutionCapabilities(DeviceExecCapabilities), QueueProperties(CommandQueueProperties), Name(String), Vendor(String), DriverVersion(String), Profile(String), Version(OpenclVersion), Extensions(String), Platform(PlatformId), DoubleFpConfig(DeviceFpConfig), HalfFpConfig(DeviceFpConfig), PreferredVectorWidthHalf(u32), HostUnifiedMemory(bool), NativeVectorWidthChar(u32), NativeVectorWidthShort(u32), NativeVectorWidthInt(u32), NativeVectorWidthLong(u32), NativeVectorWidthFloat(u32), NativeVectorWidthDouble(u32), NativeVectorWidthHalf(u32), OpenclCVersion(String), LinkerAvailable(bool), BuiltInKernels(String), ImageMaxBufferSize(usize), ImageMaxArraySize(usize), ParentDevice(Option<DeviceId>), PartitionMaxSubDevices(u32), PartitionProperties(Vec<DevicePartitionProperty>), PartitionAffinityDomain(DeviceAffinityDomain), PartitionType(Vec<DevicePartitionProperty>), ReferenceCount(u32), PreferredInteropUserSync(bool), PrintfBufferSize(usize), ImagePitchAlignment(u32), ImageBaseAddressAlignment(u32),
}
Expand description

A device info result.

Variants§

§

Type(DeviceType)

§

VendorId(u32)

§

MaxComputeUnits(u32)

§

MaxWorkItemDimensions(u32)

§

MaxWorkGroupSize(usize)

§

MaxWorkItemSizes(Vec<usize>)

§

PreferredVectorWidthChar(u32)

§

PreferredVectorWidthShort(u32)

§

PreferredVectorWidthInt(u32)

§

PreferredVectorWidthLong(u32)

§

PreferredVectorWidthFloat(u32)

§

PreferredVectorWidthDouble(u32)

§

MaxClockFrequency(u32)

§

AddressBits(u32)

§

MaxReadImageArgs(u32)

§

MaxWriteImageArgs(u32)

§

MaxMemAllocSize(u64)

§

Image2dMaxWidth(usize)

§

Image2dMaxHeight(usize)

§

Image3dMaxWidth(usize)

§

Image3dMaxHeight(usize)

§

Image3dMaxDepth(usize)

§

ImageSupport(bool)

§

MaxParameterSize(usize)

§

MaxSamplers(u32)

§

MemBaseAddrAlign(u32)

§

MinDataTypeAlignSize(u32)

§

SingleFpConfig(DeviceFpConfig)

§

GlobalMemCacheType(DeviceMemCacheType)

§

GlobalMemCachelineSize(u32)

§

GlobalMemCacheSize(u64)

§

GlobalMemSize(u64)

§

MaxConstantBufferSize(u64)

§

MaxConstantArgs(u32)

§

LocalMemType(DeviceLocalMemType)

§

LocalMemSize(u64)

§

ErrorCorrectionSupport(bool)

§

ProfilingTimerResolution(usize)

§

EndianLittle(bool)

§

Available(bool)

§

CompilerAvailable(bool)

§

ExecutionCapabilities(DeviceExecCapabilities)

§

QueueProperties(CommandQueueProperties)

§

Name(String)

§

Vendor(String)

§

DriverVersion(String)

§

Profile(String)

§

Version(OpenclVersion)

§

Extensions(String)

§

Platform(PlatformId)

§

DoubleFpConfig(DeviceFpConfig)

§

HalfFpConfig(DeviceFpConfig)

§

PreferredVectorWidthHalf(u32)

§

HostUnifiedMemory(bool)

§

NativeVectorWidthChar(u32)

§

NativeVectorWidthShort(u32)

§

NativeVectorWidthInt(u32)

§

NativeVectorWidthLong(u32)

§

NativeVectorWidthFloat(u32)

§

NativeVectorWidthDouble(u32)

§

NativeVectorWidthHalf(u32)

§

OpenclCVersion(String)

§

LinkerAvailable(bool)

§

BuiltInKernels(String)

§

ImageMaxBufferSize(usize)

§

ImageMaxArraySize(usize)

§

ParentDevice(Option<DeviceId>)

§

PartitionMaxSubDevices(u32)

§

PartitionProperties(Vec<DevicePartitionProperty>)

§

PartitionAffinityDomain(DeviceAffinityDomain)

§

PartitionType(Vec<DevicePartitionProperty>)

§

ReferenceCount(u32)

§

PreferredInteropUserSync(bool)

§

PrintfBufferSize(usize)

§

ImagePitchAlignment(u32)

§

ImageBaseAddressAlignment(u32)

Implementations§

source§

impl DeviceInfoResult

source

pub fn from_bytes_max_work_item_sizes( request: DeviceInfo, result: Vec<u8>, max_wi_dims: u32 ) -> OclCoreResult<DeviceInfoResult>

Returns a new DeviceInfoResult::MaxWorkItemSizes variant.

source

pub fn from_bytes( request: DeviceInfo, result: Vec<u8> ) -> OclCoreResult<DeviceInfoResult>

Returns a new DeviceInfoResult for all variants except MaxWorkItemSizes.

source

pub fn as_opencl_version(&self) -> OclCoreResult<OpenclVersion>

Parse the Version string and get a numeric result as OpenclVersion.

Trait Implementations§

source§

impl Debug for DeviceInfoResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for DeviceInfoResult

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.