clanCompute Compute

Classes

class  clan::ComputeBuffer
 Compute buffer. More...
 
class  clan::ComputeCommandQueue
 Compute command queue. More...
 
class  clan::ComputeContext
 Interface to compute operations. More...
 
class  clan::ComputeEvent
 Compute event object. More...
 
class  clan::ComputeKernel
 Compute program kernel object. More...
 
class  clan::ComputeMemoryMap
 Compute memory mapping. More...
 
class  clan::ComputeProgram
 Compute program object. More...
 
class  clan::ComputeSampler
 Compute sampler object. More...
 
class  clan::ComputeTransferBuffer< Type >
 Compute transfer buffer. More...
 
class  clan::ComputeWaitList
 List of events that must have completed before a new operation is executed. More...
 

Enumerations

enum  clan::SamplerAddressingMode {
  clan::sampler_address_none, clan::sampler_address_clamp_to_edge, clan::sampler_address_clamp, clan::sampler_address_repeat,
  clan::sampler_address_mirrored_repeat
}
 
enum  clan::SamplerFilterMode { clan::sampler_filter_nearest, clan::sampler_filter_linear }
 

Construction

 clan::ComputeBuffer::ComputeBuffer ()
 Constructs a null instance. More...
 
 clan::ComputeBuffer::ComputeBuffer (ComputeContext &context, int size, BufferAccess access=access_read_write, bool alloc_host_pointer=false)
 Constructs a compute program kernel. More...
 
 clan::ComputeBuffer::~ComputeBuffer ()
 
static ComputeBuffer clan::ComputeBuffer::from_pixel_buffer (ComputeContext &context, PixelBuffer &pixel_buffer, BufferAccess access=access_read_only)
 
static ComputeBuffer clan::ComputeBuffer::from_vertex_buffer (ComputeContext &context, VertexArrayBuffer &vertex_buffer, BufferAccess access=access_read_only)
 
static ComputeBuffer clan::ComputeBuffer::from_element_buffer (ComputeContext &context, ElementArrayBuffer &element_buffer, BufferAccess access=access_read_only)
 
static ComputeBuffer clan::ComputeBuffer::from_texture (ComputeContext &context, Texture &texture, int mipmap_level=0, BufferAccess access=access_read_only)
 
static ComputeBuffer clan::ComputeBuffer::from_render_buffer (ComputeContext &context, RenderBuffer &render_buffer, BufferAccess access=access_read_only)
 

Attributes

bool clan::ComputeBuffer::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeBuffer::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Implementation

class clan::ComputeBuffer::ComputeKernel
 
class clan::ComputeBuffer::ComputeCommandQueue
 
class clan::ComputeBuffer::ComputeCommandQueue_Impl
 

Construction

 clan::ComputeCommandQueue::ComputeCommandQueue ()
 Constructs a null instance. More...
 
 clan::ComputeCommandQueue::ComputeCommandQueue (ComputeContext &context, bool enable_out_of_order_execute=true, bool enable_profiling=false)
 Constructs a command queue. More...
 
 clan::ComputeCommandQueue::~ComputeCommandQueue ()
 

Attributes

bool clan::ComputeCommandQueue::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeCommandQueue::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Operations

ComputeEvent clan::ComputeCommandQueue::run_task (const ComputeKernel &kernel, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_1d (const ComputeKernel &kernel, size_t global_work_size, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_1d (const ComputeKernel &kernel, size_t global_work_size, size_t local_work_size, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_1d (const ComputeKernel &kernel, size_t global_work_size, size_t local_work_size, size_t offset, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_2d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_2d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, size_t local_work_size_x, size_t local_work_size_y, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_2d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, size_t local_work_size_x, size_t local_work_size_y, size_t offset_x, size_t offset_y, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_3d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, size_t global_work_size_z, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_3d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, size_t global_work_size_z, size_t local_work_size_x, size_t local_work_size_y, size_t local_work_size_z, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::run_3d (const ComputeKernel &kernel, size_t global_work_size_x, size_t global_work_size_y, size_t global_work_size_z, size_t local_work_size_x, size_t local_work_size_y, size_t local_work_size_z, size_t offset_x, size_t offset_y, size_t offset_z, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::add_barrier (const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::add_marker (const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::read_buffer (ComputeBuffer &buffer, bool blocking_read, size_t offset, size_t size, void *ptr, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::write_buffer (ComputeBuffer &buffer, bool blocking_write, size_t offset, size_t size, void *ptr, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::fill_buffer (ComputeBuffer &buffer, const void *pattern, size_t pattern_size, size_t offset, size_t size, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::copy_buffer (ComputeBuffer &src, ComputeBuffer &dest, size_t src_offset, size_t dest_offset, size_t size, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeMemoryMap clan::ComputeCommandQueue::map_buffer (ComputeBuffer &buffer, BufferAccess access, size_t offset, size_t size, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::migrate_buffers (const std::vector< ComputeBuffer > &buffers, bool migrate_to_host=false, bool content_undefined=false, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::acquire_display_objects (const std::vector< ComputeBuffer > &buffers, const ComputeWaitList &wait_list=ComputeWaitList())
 
ComputeEvent clan::ComputeCommandQueue::release_display_objects (const std::vector< ComputeBuffer > &buffers, const ComputeWaitList &wait_list=ComputeWaitList())
 
void clan::ComputeCommandQueue::flush ()
 
void clan::ComputeCommandQueue::finish ()
 

Implementation

class clan::ComputeCommandQueue::ComputeMemoryMap_Impl
 

Construction

 clan::ComputeContext::ComputeContext ()
 Constructs a null instance. More...
 
 clan::ComputeContext::ComputeContext (GraphicContext &gc)
 Constructs a compute context for the specified graphic context. More...
 
 clan::ComputeContext::~ComputeContext ()
 

Attributes

bool clan::ComputeContext::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeContext::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Implementation

class clan::ComputeContext::ComputeProgram_Impl
 
class clan::ComputeContext::ComputeBuffer
 
class clan::ComputeContext::ComputeBuffer_Impl
 
class clan::ComputeContext::ComputeCommandQueue_Impl
 
class clan::ComputeContext::ComputeSampler_Impl
 
class clan::ComputeContext::ComputeCommandQueue
 

Construction

 clan::ComputeEvent::ComputeEvent ()
 Constructs a null instance. More...
 
 clan::ComputeEvent::~ComputeEvent ()
 

Attributes

bool clan::ComputeEvent::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeEvent::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Operations

void clan::ComputeEvent::wait ()
 

Implementation

class clan::ComputeEvent::ComputeCommandQueue
 
class clan::ComputeEvent::ComputeCommandQueue_Impl
 

Construction

 clan::ComputeKernel::ComputeKernel ()
 Constructs a null instance. More...
 
 clan::ComputeKernel::ComputeKernel (ComputeProgram &program, const std::string &kernel_name)
 Constructs a compute program kernel. More...
 
 clan::ComputeKernel::~ComputeKernel ()
 

Attributes

bool clan::ComputeKernel::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeKernel::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Operations

void clan::ComputeKernel::set_arg (int index, const void *data, int size)
 
void clan::ComputeKernel::set_arg_int (int index, int value)
 
void clan::ComputeKernel::set_arg_float (int index, float value)
 
void clan::ComputeKernel::set_arg_vec2f (int index, const Vec2f &value)
 
void clan::ComputeKernel::set_arg_vec3f (int index, const Vec3f &value)
 
void clan::ComputeKernel::set_arg_vec4f (int index, const Vec4f &value)
 
void clan::ComputeKernel::set_arg_buffer (int index, ComputeBuffer &buffer)
 
void clan::ComputeKernel::set_arg_sampler (int index, ComputeSampler &sampler)
 
void clan::ComputeKernel::set_arg_null (int index)
 

Implementation

class clan::ComputeKernel::ComputeCommandQueue
 

Construction

 clan::ComputeMemoryMap::ComputeMemoryMap ()
 

Attributes

void * clan::ComputeMemoryMap::data ()
 Mapped memory pointer. More...
 
template<typename Type >
Type * clan::ComputeMemoryMap::data ()
 Mapped memory pointer. More...
 
size_t clan::ComputeMemoryMap::size () const
 Size of mapped memory. More...
 

Operations

ComputeEvent clan::ComputeMemoryMap::unmap ()
 Unmaps the memory. More...
 

Implementation

class clan::ComputeMemoryMap::ComputeCommandQueue
 

Construction

 clan::ComputeProgram::ComputeProgram ()
 Constructs a null instance. More...
 
 clan::ComputeProgram::ComputeProgram (ComputeContext &cc, const std::string &source_code)
 Constructs a compute program. More...
 
 clan::ComputeProgram::~ComputeProgram ()
 

Attributes

bool clan::ComputeProgram::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeProgram::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Operations

void clan::ComputeProgram::build (const std::string &build_options="-cl-single-precision-constant -cl-mad-enable -cl-no-signed-zeros -cl-fast-relaxed-math")
 

Implementation

class clan::ComputeProgram::ComputeKernel_Impl
 

Construction

 clan::ComputeSampler::ComputeSampler ()
 Constructs a null instance. More...
 
 clan::ComputeSampler::ComputeSampler (ComputeContext &context, bool normalized_coords=true, SamplerAddressingMode addressing_mode=sampler_address_repeat, SamplerFilterMode filter_mode=sampler_filter_linear)
 Constructs a sampler object. More...
 
 clan::ComputeSampler::~ComputeSampler ()
 

Attributes

bool clan::ComputeSampler::is_null () const
 Returns true if this object is invalid. More...
 
void clan::ComputeSampler::throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Implementation

class clan::ComputeSampler::ComputeKernel
 

Construction

 clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer ()
 
 clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer (ComputeContext &context, ComputeCommandQueue &queue, int size)
 
 clan::ComputeTransferBuffer< Type >::~ComputeTransferBuffer ()
 

Attributes

Type * clan::ComputeTransferBuffer< Type >::data
 
ComputeEvent & clan::ComputeTransferBuffer< Type >::get_upload_event ()
 
ComputeBuffer & clan::ComputeTransferBuffer< Type >::get_buffer_remote ()
 

Operations

void clan::ComputeTransferBuffer< Type >::upload_range (int start, int length)
 

Construction

 clan::ComputeWaitList::ComputeWaitList ()
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2, const ComputeEvent &event3)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2, const ComputeEvent &event3, const ComputeEvent &event4)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2, const ComputeEvent &event3, const ComputeEvent &event4, const ComputeEvent &event5)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2, const ComputeEvent &event3, const ComputeEvent &event4, const ComputeEvent &event5, const ComputeEvent &event6)
 
 clan::ComputeWaitList::ComputeWaitList (const ComputeEvent &event1, const ComputeEvent &event2, const ComputeEvent &event3, const ComputeEvent &event4, const ComputeEvent &event5, const ComputeEvent &event6, const ComputeEvent &event7)
 

Detailed Description

Enumeration Type Documentation

Enumerator
sampler_address_none 
sampler_address_clamp_to_edge 
sampler_address_clamp 
sampler_address_repeat 
sampler_address_mirrored_repeat 
Enumerator
sampler_filter_nearest 
sampler_filter_linear 

Function Documentation

clan::ComputeBuffer::ComputeBuffer ( )

Constructs a null instance.

clan::ComputeBuffer::ComputeBuffer ( ComputeContext context,
int  size,
BufferAccess  access = access_read_write,
bool  alloc_host_pointer = false 
)

Constructs a compute program kernel.

Parameters
program= Compute program containing the kernel function
kernel_name= Name of kernel function
clan::ComputeCommandQueue::ComputeCommandQueue ( )

Constructs a null instance.

clan::ComputeCommandQueue::ComputeCommandQueue ( ComputeContext context,
bool  enable_out_of_order_execute = true,
bool  enable_profiling = false 
)

Constructs a command queue.

clan::ComputeContext::ComputeContext ( )

Constructs a null instance.

clan::ComputeContext::ComputeContext ( GraphicContext gc)

Constructs a compute context for the specified graphic context.

Parameters
gc= Graphic context the compute context is to be used with
clan::ComputeEvent::ComputeEvent ( )

Constructs a null instance.

clan::ComputeKernel::ComputeKernel ( )

Constructs a null instance.

clan::ComputeKernel::ComputeKernel ( ComputeProgram program,
const std::string &  kernel_name 
)

Constructs a compute program kernel.

Parameters
program= Compute program containing the kernel function
kernel_name= Name of kernel function
clan::ComputeMemoryMap::ComputeMemoryMap ( )
clan::ComputeProgram::ComputeProgram ( )

Constructs a null instance.

clan::ComputeProgram::ComputeProgram ( ComputeContext cc,
const std::string &  source_code 
)

Constructs a compute program.

Parameters
cc= Compute context the program will be used in
source_code= Program source code
clan::ComputeSampler::ComputeSampler ( )

Constructs a null instance.

clan::ComputeSampler::ComputeSampler ( ComputeContext context,
bool  normalized_coords = true,
SamplerAddressingMode  addressing_mode = sampler_address_repeat,
SamplerFilterMode  filter_mode = sampler_filter_linear 
)

Constructs a sampler object.

template<typename Type >
clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer ( )
inline
template<typename Type >
clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer ( ComputeContext context,
ComputeCommandQueue queue,
int  size 
)
inline
clan::ComputeWaitList::ComputeWaitList ( )
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2 
)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2,
const ComputeEvent event3 
)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2,
const ComputeEvent event3,
const ComputeEvent event4 
)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2,
const ComputeEvent event3,
const ComputeEvent event4,
const ComputeEvent event5 
)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2,
const ComputeEvent event3,
const ComputeEvent event4,
const ComputeEvent event5,
const ComputeEvent event6 
)
inline
clan::ComputeWaitList::ComputeWaitList ( const ComputeEvent event1,
const ComputeEvent event2,
const ComputeEvent event3,
const ComputeEvent event4,
const ComputeEvent event5,
const ComputeEvent event6,
const ComputeEvent event7 
)
inline
clan::ComputeBuffer::~ComputeBuffer ( )
clan::ComputeCommandQueue::~ComputeCommandQueue ( )
clan::ComputeContext::~ComputeContext ( )
clan::ComputeEvent::~ComputeEvent ( )
clan::ComputeKernel::~ComputeKernel ( )
clan::ComputeProgram::~ComputeProgram ( )
clan::ComputeSampler::~ComputeSampler ( )
template<typename Type >
clan::ComputeTransferBuffer< Type >::~ComputeTransferBuffer ( )
inline
ComputeEvent clan::ComputeCommandQueue::acquire_display_objects ( const std::vector< ComputeBuffer > &  buffers,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::add_barrier ( const ComputeWaitList wait_list = ComputeWaitList())
ComputeEvent clan::ComputeCommandQueue::add_marker ( const ComputeWaitList wait_list = ComputeWaitList())
void clan::ComputeProgram::build ( const std::string &  build_options = "-cl-single-precision-constant -cl-mad-enable -cl-no-signed-zeros -cl-fast-relaxed-math")
ComputeEvent clan::ComputeCommandQueue::copy_buffer ( ComputeBuffer src,
ComputeBuffer dest,
size_t  src_offset,
size_t  dest_offset,
size_t  size,
const ComputeWaitList wait_list = ComputeWaitList() 
)
void* clan::ComputeMemoryMap::data ( )

Mapped memory pointer.

This function blocks if the memory has not been mapped yet.

Referenced by clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer(), and clan::ComputeTransferBuffer< Type >::upload_range().

template<typename Type >
Type* clan::ComputeMemoryMap::data ( )
inline

Mapped memory pointer.

This function blocks if the memory has not been mapped yet.

ComputeEvent clan::ComputeCommandQueue::fill_buffer ( ComputeBuffer buffer,
const void *  pattern,
size_t  pattern_size,
size_t  offset,
size_t  size,
const ComputeWaitList wait_list = ComputeWaitList() 
)
void clan::ComputeCommandQueue::finish ( )
void clan::ComputeCommandQueue::flush ( )
static ComputeBuffer clan::ComputeBuffer::from_element_buffer ( ComputeContext context,
ElementArrayBuffer element_buffer,
BufferAccess  access = access_read_only 
)
static
static ComputeBuffer clan::ComputeBuffer::from_pixel_buffer ( ComputeContext context,
PixelBuffer pixel_buffer,
BufferAccess  access = access_read_only 
)
static
static ComputeBuffer clan::ComputeBuffer::from_render_buffer ( ComputeContext context,
RenderBuffer render_buffer,
BufferAccess  access = access_read_only 
)
static
static ComputeBuffer clan::ComputeBuffer::from_texture ( ComputeContext context,
Texture texture,
int  mipmap_level = 0,
BufferAccess  access = access_read_only 
)
static
static ComputeBuffer clan::ComputeBuffer::from_vertex_buffer ( ComputeContext context,
VertexArrayBuffer vertex_buffer,
BufferAccess  access = access_read_only 
)
static
template<typename Type >
ComputeBuffer& clan::ComputeTransferBuffer< Type >::get_buffer_remote ( )
inline
template<typename Type >
ComputeEvent& clan::ComputeTransferBuffer< Type >::get_upload_event ( )
inline
bool clan::ComputeEvent::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeContext::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeProgram::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeKernel::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeCommandQueue::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeSampler::is_null ( ) const
inline

Returns true if this object is invalid.

bool clan::ComputeBuffer::is_null ( ) const
inline

Returns true if this object is invalid.

ComputeMemoryMap clan::ComputeCommandQueue::map_buffer ( ComputeBuffer buffer,
BufferAccess  access,
size_t  offset,
size_t  size,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::migrate_buffers ( const std::vector< ComputeBuffer > &  buffers,
bool  migrate_to_host = false,
bool  content_undefined = false,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::read_buffer ( ComputeBuffer buffer,
bool  blocking_read,
size_t  offset,
size_t  size,
void *  ptr,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::release_display_objects ( const std::vector< ComputeBuffer > &  buffers,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::run_1d ( const ComputeKernel kernel,
size_t  global_work_size,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_1d ( const ComputeKernel kernel,
size_t  global_work_size,
size_t  local_work_size,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_1d ( const ComputeKernel kernel,
size_t  global_work_size,
size_t  local_work_size,
size_t  offset,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::run_2d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_2d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
size_t  local_work_size_x,
size_t  local_work_size_y,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_2d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
size_t  local_work_size_x,
size_t  local_work_size_y,
size_t  offset_x,
size_t  offset_y,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::run_3d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
size_t  global_work_size_z,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_3d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
size_t  global_work_size_z,
size_t  local_work_size_x,
size_t  local_work_size_y,
size_t  local_work_size_z,
const ComputeWaitList wait_list = ComputeWaitList() 
)
inline
ComputeEvent clan::ComputeCommandQueue::run_3d ( const ComputeKernel kernel,
size_t  global_work_size_x,
size_t  global_work_size_y,
size_t  global_work_size_z,
size_t  local_work_size_x,
size_t  local_work_size_y,
size_t  local_work_size_z,
size_t  offset_x,
size_t  offset_y,
size_t  offset_z,
const ComputeWaitList wait_list = ComputeWaitList() 
)
ComputeEvent clan::ComputeCommandQueue::run_task ( const ComputeKernel kernel,
const ComputeWaitList wait_list = ComputeWaitList() 
)
void clan::ComputeKernel::set_arg ( int  index,
const void *  data,
int  size 
)
void clan::ComputeKernel::set_arg_buffer ( int  index,
ComputeBuffer buffer 
)
void clan::ComputeKernel::set_arg_float ( int  index,
float  value 
)
void clan::ComputeKernel::set_arg_int ( int  index,
int  value 
)
void clan::ComputeKernel::set_arg_null ( int  index)
void clan::ComputeKernel::set_arg_sampler ( int  index,
ComputeSampler sampler 
)
void clan::ComputeKernel::set_arg_vec2f ( int  index,
const Vec2f value 
)
void clan::ComputeKernel::set_arg_vec3f ( int  index,
const Vec3f value 
)
void clan::ComputeKernel::set_arg_vec4f ( int  index,
const Vec4f value 
)
size_t clan::ComputeMemoryMap::size ( ) const

Size of mapped memory.

void clan::ComputeEvent::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeContext::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeProgram::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeKernel::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeCommandQueue::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeSampler::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::ComputeBuffer::throw_if_null ( ) const

Throw an exception if this object is invalid.

ComputeEvent clan::ComputeMemoryMap::unmap ( )

Unmaps the memory.

template<typename Type >
void clan::ComputeTransferBuffer< Type >::upload_range ( int  start,
int  length 
)
inline
void clan::ComputeEvent::wait ( )
ComputeEvent clan::ComputeCommandQueue::write_buffer ( ComputeBuffer buffer,
bool  blocking_write,
size_t  offset,
size_t  size,
void *  ptr,
const ComputeWaitList wait_list = ComputeWaitList() 
)

Variable Documentation

template<typename Type >
Type* clan::ComputeTransferBuffer< Type >::data

Friends

friend class ComputeBuffer
friend
friend class ComputeBuffer_Impl
friend
friend class ComputeCommandQueue
friend
friend class ComputeCommandQueue
friend
friend class ComputeCommandQueue
friend
friend class ComputeCommandQueue
friend
friend class ComputeCommandQueue
friend
friend class ComputeCommandQueue_Impl
friend
friend class ComputeCommandQueue_Impl
friend
friend class ComputeCommandQueue_Impl
friend
friend class ComputeKernel
friend
friend class ComputeKernel
friend
friend class ComputeKernel_Impl
friend
friend class ComputeMemoryMap_Impl
friend
friend class ComputeProgram_Impl
friend
friend class ComputeSampler_Impl
friend