Enum ocl::enums::DeviceInfoResult [] [src]

pub enum DeviceInfoResult {
    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(String),
    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),
    Error(Box<Error>),
}

[UNSTABLE][INCOMPLETE] A device info result.

[FIXME]: Implement the rest of this beast... eventually...

Variants

Methods

impl DeviceInfoResult

Returns a new DeviceInfoResult::MaxWorkItemSizes variant.

Returns a new DeviceInfoResult for all variants except MaxWorkItemSizes.

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

Trait Implementations

impl From<Error> for DeviceInfoResult

Performs the conversion.

impl Error for DeviceInfoResult

impl Debug for DeviceInfoResult

Formats the value using the given formatter.

impl Display for DeviceInfoResult

Formats the value using the given formatter.

impl Into<String> for DeviceInfoResult

Performs the conversion.