# Enum ocl_core::types::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(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),
    }

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)`

## Methods

### `impl DeviceInfoResult`
[src]

#### `pub fn from_bytes_max_work_item_sizes(
request: DeviceInfo,
result: Vec<u8>,
max_wi_dims: u32
) -> OclCoreResult<DeviceInfoResult>`
[src]

Returns a new `DeviceInfoResult::MaxWorkItemSizes` variant.

#### `pub fn from_bytes(
request: DeviceInfo,
result: Vec<u8>
) -> OclCoreResult<DeviceInfoResult>`
[src]

Returns a new `DeviceInfoResult` for all variants except `MaxWorkItemSizes`.

#### `pub fn as_opencl_version(&self) -> OclCoreResult<OpenclVersion>`
[src]

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

## Trait Implementations

### `impl Debug for DeviceInfoResult`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

### `impl Display for DeviceInfoResult`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`
[src]

Formats the value using the given formatter. Read more

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)