pub trait ClMem {
Show 15 methods
// Required methods
fn get(&self) -> cl_mem;
fn get_mut(&mut self) -> cl_mem;
// Provided methods
fn mem_type(&self) -> Result<cl_mem_object_type> { ... }
fn flags(&self) -> Result<cl_mem_flags> { ... }
fn size(&self) -> Result<size_t> { ... }
fn host_ptr(&self) -> Result<intptr_t> { ... }
fn map_count(&self) -> Result<cl_uint> { ... }
fn reference_count(&self) -> Result<cl_uint> { ... }
fn context(&self) -> Result<cl_context> { ... }
fn associated_memobject(&self) -> Result<cl_mem> { ... }
fn offset(&self) -> Result<size_t> { ... }
fn uses_svm_pointer(&self) -> Result<cl_uint> { ... }
fn properties(&self) -> Result<Vec<cl_ulong>> { ... }
fn get_mem_data(&self, param_name: cl_mem_info) -> Result<Vec<u8>> { ... }
fn gl_object_info(&self) -> Result<(cl_GLuint, cl_GLuint)> { ... }
}
Required Methods§
Provided Methods§
fn mem_type(&self) -> Result<cl_mem_object_type>
fn flags(&self) -> Result<cl_mem_flags>
fn size(&self) -> Result<size_t>
fn host_ptr(&self) -> Result<intptr_t>
fn map_count(&self) -> Result<cl_uint>
fn reference_count(&self) -> Result<cl_uint>
fn context(&self) -> Result<cl_context>
fn associated_memobject(&self) -> Result<cl_mem>
fn offset(&self) -> Result<size_t>
fn uses_svm_pointer(&self) -> Result<cl_uint>
sourcefn properties(&self) -> Result<Vec<cl_ulong>>
fn properties(&self) -> Result<Vec<cl_ulong>>
CL_VERSION_3_0
sourcefn get_mem_data(&self, param_name: cl_mem_info) -> Result<Vec<u8>>
fn get_mem_data(&self, param_name: cl_mem_info) -> Result<Vec<u8>>
Get memory data about an OpenCL memory object. Calls clGetMemObjectInfo to get the desired data about the memory object.
sourcefn gl_object_info(&self) -> Result<(cl_GLuint, cl_GLuint)>
fn gl_object_info(&self) -> Result<(cl_GLuint, cl_GLuint)>
Query an OpenGL object used to create an OpenCL memory object.
returns a Result containing the OpenGL object type and name or the error code from the OpenCL C API function.