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>), }
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(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>)
Methods
impl DeviceInfoResult
[src]
fn from_bytes_max_work_item_sizes(
request: DeviceInfo,
result: Result<Vec<u8>, Error>,
max_wi_dims: u32
) -> DeviceInfoResult
request: DeviceInfo,
result: Result<Vec<u8>, Error>,
max_wi_dims: u32
) -> DeviceInfoResult
Returns a new DeviceInfoResult::MaxWorkItemSizes
variant.
fn from_bytes(
request: DeviceInfo,
result: Result<Vec<u8>, Error>
) -> DeviceInfoResult
request: DeviceInfo,
result: Result<Vec<u8>, Error>
) -> DeviceInfoResult
Returns a new DeviceInfoResult
for all variants except MaxWorkItemSizes
.
fn as_opencl_version(&self) -> Result<OpenclVersion, Error>
Parse the Version
string and get a numeric result as OpenclVersion
.
Trait Implementations
impl Display for DeviceInfoResult
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for DeviceInfoResult
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl Debug for DeviceInfoResult
[src]
impl From<Error> for DeviceInfoResult
[src]
fn from(err: Error) -> DeviceInfoResult
Performs the conversion.