pub trait ContextTraitConst {
    fn as_raw_Context(&self) -> *const c_void;

    fn ndevices(&self) -> Result<size_t> { ... }
    fn device(&self, idx: size_t) -> Result<Device> { ... }
    fn ptr(&self) -> Result<*mut c_void> { ... }
    fn get_opencl_context_property(
        &self,
        property_id: i32
    ) -> Result<*mut c_void> { ... } fn use_svm(&self) -> Result<bool> { ... } fn empty(&self) -> Result<bool> { ... } }

Required Methods

Provided Methods

Returns

cl_context value

Get OpenCL context property specified on context creation

Parameters
  • propertyId: Property id (CL_CONTEXT_* as defined in cl_context_properties type)
Returns

Property value if property was specified on clCreateContext, or NULL if context created without the property

Implementors