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... | |
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... | |
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) | |
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.
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.
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.
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.
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
clan::ComputeBuffer::~ComputeBuffer | ( | ) |
clan::ComputeCommandQueue::~ComputeCommandQueue | ( | ) |
clan::ComputeContext::~ComputeContext | ( | ) |
clan::ComputeEvent::~ComputeEvent | ( | ) |
clan::ComputeKernel::~ComputeKernel | ( | ) |
clan::ComputeProgram::~ComputeProgram | ( | ) |
clan::ComputeSampler::~ComputeSampler | ( | ) |
|
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().
|
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 |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
inline |
Returns true if this object is invalid.
|
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() |
||
) |
Referenced by clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer().
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() |
||
) |
|
inline |
|
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() |
||
) |
|
inline |
|
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() |
||
) |
|
inline |
|
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.
|
inline |
References clan::ComputeMemoryMap::data(), and clan::ComputeCommandQueue::write_buffer().
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() |
||
) |
Referenced by clan::ComputeTransferBuffer< Type >::upload_range().
Type* clan::ComputeTransferBuffer< Type >::data |
Referenced by clan::ComputeTransferBuffer< Type >::ComputeTransferBuffer().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |