HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CE_ExternalBuffer Class Reference

#include <CE_Context.h>

+ Inheritance diagram for CE_ExternalBuffer:

Public Member Functions

 CE_ExternalBuffer (const cl::Context &context, cl_mem_flags flags,::size_t size, SYS_Handle handle, cl_int *err=nullptr)
 
 CE_ExternalBuffer ()
 
- Public Member Functions inherited from cl::Buffer
 Buffer (const Context &context, cl_mem_flags flags,::size_t size, void *host_ptr=NULL, cl_int *err=NULL)
 
 Buffer ()
 
 Buffer (const Buffer &buffer)
 
 Buffer (const cl_mem &buffer)
 
Bufferoperator= (const Buffer &rhs)
 
Bufferoperator= (const cl_mem &rhs)
 
- Public Member Functions inherited from cl::Memory
 Memory ()
 
 Memory (const Memory &memory)
 
 Memory (const cl_mem &memory)
 
Memoryoperator= (const Memory &rhs)
 
Memoryoperator= (const cl_mem &rhs)
 
template<typename T >
cl_int getInfo (cl_mem_info name, T *param) const
 
template<cl_int name>
detail::param_traits
< detail::cl_mem_info, name >
::param_type 
getInfo (cl_int *err=NULL) const
 
- Public Member Functions inherited from cl::detail::Wrapper< cl_mem >
 Wrapper ()
 
 Wrapper (const cl_type &obj)
 
 Wrapper (const Wrapper< cl_type > &rhs)
 
 ~Wrapper ()
 
Wrapper< cl_type > & operator= (const Wrapper< cl_type > &rhs)
 
Wrapper< cl_type > & operator= (const cl_type &rhs)
 
cl_type operator() () const
 
cl_typeoperator() ()
 

Additional Inherited Members

- Public Types inherited from cl::detail::Wrapper< cl_mem >
typedef cl_mem cl_type
 
- Protected Member Functions inherited from cl::detail::Wrapper< cl_mem >
cl_int retain () const
 
cl_int release () const
 
- Protected Attributes inherited from cl::detail::Wrapper< cl_mem >
cl_type object_
 

Detailed Description

An OpenCL buffer that is backed by a external memory. External memory is accessed through a platform specific memory handle. Requires the OpenCL driver implements the following extensions: cl_khr_external_memory cl_khr_external_memory_opaque_fd (only on Linux and possibly Mac) cl_khr_external_memory_win32 (only on Windows)

Definition at line 53 of file CE_Context.h.

Constructor & Destructor Documentation

CE_ExternalBuffer::CE_ExternalBuffer ( const cl::Context context,
cl_mem_flags  flags,
::size_t  size,
SYS_Handle  handle,
cl_int err = nullptr 
)
CE_ExternalBuffer::CE_ExternalBuffer ( )
inline

Definition at line 63 of file CE_Context.h.


The documentation for this class was generated from the following file: