[−][src]Struct opencv::core::Device
Implementations
impl Device
[src]
pub fn as_raw_Device(&self) -> *const c_void
[src]
pub fn as_raw_mut_Device(&mut self) -> *mut c_void
[src]
impl Device
[src]
pub fn default() -> Result<Device>
[src]
pub fn new(d: *mut c_void) -> Result<Device>
[src]
pub fn copy(d: &Device) -> Result<Device>
[src]
pub fn get_default() -> Result<Device>
[src]
pub fn from_handle(d: *mut c_void) -> Result<Device>
[src]
Parameters
- d: OpenCL handle (cl_device_id). clRetainDevice() is called on success.
Trait Implementations
impl Boxed for Device
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl DeviceTrait for Device
[src]
fn as_raw_Device(&self) -> *const c_void
[src]
fn as_raw_mut_Device(&mut self) -> *mut c_void
[src]
fn set(&mut self, d: *mut c_void) -> Result<()>
[src]
fn name(&self) -> Result<String>
[src]
fn extensions(&self) -> Result<String>
[src]
fn is_extension_supported(&self, extension_name: &str) -> Result<bool>
[src]
fn version(&self) -> Result<String>
[src]
fn vendor_name(&self) -> Result<String>
[src]
fn opencl_c_version(&self) -> Result<String>
[src]
fn opencl_version(&self) -> Result<String>
[src]
fn device_version_major(&self) -> Result<i32>
[src]
fn device_version_minor(&self) -> Result<i32>
[src]
fn driver_version(&self) -> Result<String>
[src]
fn ptr(&self) -> Result<*mut c_void>
[src]
fn typ(&self) -> Result<i32>
[src]
fn address_bits(&self) -> Result<i32>
[src]
fn available(&self) -> Result<bool>
[src]
fn compiler_available(&self) -> Result<bool>
[src]
fn linker_available(&self) -> Result<bool>
[src]
fn double_fp_config(&self) -> Result<i32>
[src]
fn single_fp_config(&self) -> Result<i32>
[src]
fn half_fp_config(&self) -> Result<i32>
[src]
fn endian_little(&self) -> Result<bool>
[src]
fn error_correction_support(&self) -> Result<bool>
[src]
fn execution_capabilities(&self) -> Result<i32>
[src]
fn global_mem_cache_size(&self) -> Result<size_t>
[src]
fn global_mem_cache_type(&self) -> Result<i32>
[src]
fn global_mem_cache_line_size(&self) -> Result<i32>
[src]
fn global_mem_size(&self) -> Result<size_t>
[src]
fn local_mem_size(&self) -> Result<size_t>
[src]
fn local_mem_type(&self) -> Result<i32>
[src]
fn host_unified_memory(&self) -> Result<bool>
[src]
fn image_support(&self) -> Result<bool>
[src]
fn image_from_buffer_support(&self) -> Result<bool>
[src]
fn image_pitch_alignment(&self) -> Result<u32>
[src]
fn image_base_address_alignment(&self) -> Result<u32>
[src]
fn intel_subgroups_support(&self) -> Result<bool>
[src]
fn image2_d_max_width(&self) -> Result<size_t>
[src]
fn image2_d_max_height(&self) -> Result<size_t>
[src]
fn image3_d_max_width(&self) -> Result<size_t>
[src]
fn image3_d_max_height(&self) -> Result<size_t>
[src]
fn image3_d_max_depth(&self) -> Result<size_t>
[src]
fn image_max_buffer_size(&self) -> Result<size_t>
[src]
fn image_max_array_size(&self) -> Result<size_t>
[src]
fn vendor_id(&self) -> Result<i32>
[src]
fn is_amd(&self) -> Result<bool>
[src]
fn is_intel(&self) -> Result<bool>
[src]
fn is_n_vidia(&self) -> Result<bool>
[src]
fn max_clock_frequency(&self) -> Result<i32>
[src]
fn max_compute_units(&self) -> Result<i32>
[src]
fn max_constant_args(&self) -> Result<i32>
[src]
fn max_constant_buffer_size(&self) -> Result<size_t>
[src]
fn max_mem_alloc_size(&self) -> Result<size_t>
[src]
fn max_parameter_size(&self) -> Result<size_t>
[src]
fn max_read_image_args(&self) -> Result<i32>
[src]
fn max_write_image_args(&self) -> Result<i32>
[src]
fn max_samplers(&self) -> Result<i32>
[src]
fn max_work_group_size(&self) -> Result<size_t>
[src]
fn max_work_item_dims(&self) -> Result<i32>
[src]
fn max_work_item_sizes(&self, unnamed: &mut size_t) -> Result<()>
[src]
fn mem_base_addr_align(&self) -> Result<i32>
[src]
fn native_vector_width_char(&self) -> Result<i32>
[src]
fn native_vector_width_short(&self) -> Result<i32>
[src]
fn native_vector_width_int(&self) -> Result<i32>
[src]
fn native_vector_width_long(&self) -> Result<i32>
[src]
fn native_vector_width_float(&self) -> Result<i32>
[src]
fn native_vector_width_double(&self) -> Result<i32>
[src]
fn native_vector_width_half(&self) -> Result<i32>
[src]
fn preferred_vector_width_char(&self) -> Result<i32>
[src]
fn preferred_vector_width_short(&self) -> Result<i32>
[src]
fn preferred_vector_width_int(&self) -> Result<i32>
[src]
fn preferred_vector_width_long(&self) -> Result<i32>
[src]
fn preferred_vector_width_float(&self) -> Result<i32>
[src]
fn preferred_vector_width_double(&self) -> Result<i32>
[src]
fn preferred_vector_width_half(&self) -> Result<i32>
[src]
fn printf_buffer_size(&self) -> Result<size_t>
[src]
fn profiling_timer_resolution(&self) -> Result<size_t>
[src]
fn empty(&self) -> Result<bool>
[src]
impl Drop for Device
[src]
impl Send for Device
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,