Enum DeviceInfo

Source
#[repr(C)]
pub enum DeviceInfo {
Show 94 variants Type = 4_096, VendorId = 4_097, MaxComputeUnits = 4_098, MaxWorkItemDimensions = 4_099, MaxWorkGroupSize = 4_100, MaxWorkItemSizes = 4_101, PreferredVectorWidthChar = 4_102, PreferredVectorWidthShort = 4_103, PreferredVectorWidthInt = 4_104, PreferredVectorWidthLong = 4_105, PreferredVectorWidthFloat = 4_106, PreferredVectorWidthDouble = 4_107, PreferredVectorWidthHalf = 4_148, MaxClockFrequency = 4_108, AddressBits = 4_109, MaxReadImageArgs = 4_110, MaxWriteImageArgs = 4_111, MaxMemAllocSize = 4_112, Image2DMaxWidth = 4_113, Image2DMaxHeight = 4_114, Image3DMaxWidth = 4_115, Image3DMaxHeight = 4_116, Image3DMaxDepth = 4_117, ImageSupport = 4_118, MaxParameterSize = 4_119, MaxSamplers = 4_120, MemBaseAddrAlign = 4_121, MinDataTypeAlignSize = 4_122, SingleFpConfig = 4_123, GlobalMemCacheType = 4_124, GlobalMemCachelineSize = 4_125, GlobalMemCacheSize = 4_126, GlobalMemSize = 4_127, MaxConstantBufferSize = 4_128, MaxConstantArgs = 4_129, LocalMemType = 4_130, LocalMemSize = 4_131, ErrorCorrectionSupport = 4_132, ProfilingTimerResolution = 4_133, EndianLittle = 4_134, Available = 4_135, CompilerAvailable = 4_136, ExecutionCapabilities = 4_137, QueueOnHostProperties = 4_138, Name = 4_139, Vendor = 4_140, Profile = 4_142, Version = 4_143, Extensions = 4_144, Platform = 4_145, DoubleFpConfig = 4_146, HostUnifiedMemory = 4_149, NativeVectorWidthChar = 4_150, NativeVectorWidthShort = 4_151, NativeVectorWidthInt = 4_152, NativeVectorWidthLong = 4_153, NativeVectorWidthFloat = 4_154, NativeVectorWidthDouble = 4_155, NativeVectorWidthHalf = 4_156, OpenclCVersion = 4_157, LinkerAvailable = 4_158, BuiltInKernels = 4_159, ImageMaxBufferSize = 4_160, ImageMaxArraySize = 4_161, ParentDevice = 4_162, PartitionMaxSubDevices = 4_163, PartitionProperties = 4_164, PartitionAffinityDomain = 4_165, PartitionType = 4_166, ReferenceCount = 4_167, PreferredInteropUserSync = 4_168, PrintfBufferSize = 4_169, ImagePitchAlignment = 4_170, ImageBaseAddressAlignment = 4_171, MaxReadWriteImageArgs = 4_172, MaxGlobalVariableSize = 4_173, QueueOnDeviceProperties = 4_174, QueueOnDevicePreferredSize = 4_175, QueueOnDeviceMaxSize = 4_176, MaxOnDeviceQueues = 4_177, MaxOnDeviceEvents = 4_178, SvmCapabilities = 4_179, GlobalVariablePreferredTotalSize = 4_180, MaxPipeArgs = 4_181, PipeMaxActiveReservations = 4_182, PipeMaxPacketSize = 4_183, PreferredPlatformAtomicAlignment = 4_184, PreferredGlobalAtomicAlignment = 4_185, PreferredLocalAtomicAlignment = 4_186, IlVersion = 4_187, MaxNumSubGroups = 4_188, SubGroupIndependentForwardProgress = 4_189, HalfFpConfig = 4_147, DriverVersion = 4_141,
}

Variants§

§

Type = 4_096

§

VendorId = 4_097

§

MaxComputeUnits = 4_098

§

MaxWorkItemDimensions = 4_099

§

MaxWorkGroupSize = 4_100

§

MaxWorkItemSizes = 4_101

§

PreferredVectorWidthChar = 4_102

§

PreferredVectorWidthShort = 4_103

§

PreferredVectorWidthInt = 4_104

§

PreferredVectorWidthLong = 4_105

§

PreferredVectorWidthFloat = 4_106

§

PreferredVectorWidthDouble = 4_107

§

PreferredVectorWidthHalf = 4_148

§

MaxClockFrequency = 4_108

§

AddressBits = 4_109

§

MaxReadImageArgs = 4_110

§

MaxWriteImageArgs = 4_111

§

MaxMemAllocSize = 4_112

§

Image2DMaxWidth = 4_113

§

Image2DMaxHeight = 4_114

§

Image3DMaxWidth = 4_115

§

Image3DMaxHeight = 4_116

§

Image3DMaxDepth = 4_117

§

ImageSupport = 4_118

§

MaxParameterSize = 4_119

§

MaxSamplers = 4_120

§

MemBaseAddrAlign = 4_121

§

MinDataTypeAlignSize = 4_122

§

SingleFpConfig = 4_123

§

GlobalMemCacheType = 4_124

§

GlobalMemCachelineSize = 4_125

§

GlobalMemCacheSize = 4_126

§

GlobalMemSize = 4_127

§

MaxConstantBufferSize = 4_128

§

MaxConstantArgs = 4_129

§

LocalMemType = 4_130

§

LocalMemSize = 4_131

§

ErrorCorrectionSupport = 4_132

§

ProfilingTimerResolution = 4_133

§

EndianLittle = 4_134

§

Available = 4_135

§

CompilerAvailable = 4_136

§

ExecutionCapabilities = 4_137

§

QueueOnHostProperties = 4_138

§

Name = 4_139

§

Vendor = 4_140

§

Profile = 4_142

§

Version = 4_143

§

Extensions = 4_144

§

Platform = 4_145

§

DoubleFpConfig = 4_146

§

HostUnifiedMemory = 4_149

§

NativeVectorWidthChar = 4_150

§

NativeVectorWidthShort = 4_151

§

NativeVectorWidthInt = 4_152

§

NativeVectorWidthLong = 4_153

§

NativeVectorWidthFloat = 4_154

§

NativeVectorWidthDouble = 4_155

§

NativeVectorWidthHalf = 4_156

§

OpenclCVersion = 4_157

§

LinkerAvailable = 4_158

§

BuiltInKernels = 4_159

§

ImageMaxBufferSize = 4_160

§

ImageMaxArraySize = 4_161

§

ParentDevice = 4_162

§

PartitionMaxSubDevices = 4_163

§

PartitionProperties = 4_164

§

PartitionAffinityDomain = 4_165

§

PartitionType = 4_166

§

ReferenceCount = 4_167

§

PreferredInteropUserSync = 4_168

§

PrintfBufferSize = 4_169

§

ImagePitchAlignment = 4_170

§

ImageBaseAddressAlignment = 4_171

§

MaxReadWriteImageArgs = 4_172

§

MaxGlobalVariableSize = 4_173

§

QueueOnDeviceProperties = 4_174

§

QueueOnDevicePreferredSize = 4_175

§

QueueOnDeviceMaxSize = 4_176

§

MaxOnDeviceQueues = 4_177

§

MaxOnDeviceEvents = 4_178

§

SvmCapabilities = 4_179

§

GlobalVariablePreferredTotalSize = 4_180

§

MaxPipeArgs = 4_181

§

PipeMaxActiveReservations = 4_182

§

PipeMaxPacketSize = 4_183

§

PreferredPlatformAtomicAlignment = 4_184

§

PreferredGlobalAtomicAlignment = 4_185

§

PreferredLocalAtomicAlignment = 4_186

§

IlVersion = 4_187

§

MaxNumSubGroups = 4_188

§

SubGroupIndependentForwardProgress = 4_189

§

HalfFpConfig = 4_147

§

DriverVersion = 4_141

Trait Implementations§

Source§

impl Clone for DeviceInfo

Source§

fn clone(&self) -> DeviceInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeviceInfo

Source§

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

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

impl From<&DeviceInfo> for cl_device_info

Source§

fn from(source_value: &DeviceInfo) -> cl_device_info

Converts to this type from the input type.
Source§

impl From<DeviceInfo> for cl_device_info

Source§

fn from(source_value: DeviceInfo) -> cl_device_info

Converts to this type from the input type.
Source§

impl From<u32> for DeviceInfo

Source§

fn from(dest_value: cl_device_info) -> DeviceInfo

Converts to this type from the input type.
Source§

impl Hash for DeviceInfo

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DeviceInfo

Source§

fn eq(&self, other: &DeviceInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for DeviceInfo

Source§

fn partial_cmp(&self, other: &DeviceInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for DeviceInfo

Source§

impl Eq for DeviceInfo

Source§

impl StructuralPartialEq for DeviceInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.