Compute program kernel object. More...
#include <compute_kernel.h>
Public Member Functions | |
Construction | |
ComputeKernel () | |
Constructs a null instance. More... | |
ComputeKernel (ComputeProgram &program, const std::string &kernel_name) | |
Constructs a compute program kernel. More... | |
~ComputeKernel () | |
Attributes | |
bool | is_null () const |
Returns true if this object is invalid. More... | |
void | throw_if_null () const |
Throw an exception if this object is invalid. More... | |
Operations | |
void | set_arg (int index, const void *data, int size) |
void | set_arg_int (int index, int value) |
void | set_arg_float (int index, float value) |
void | set_arg_vec2f (int index, const Vec2f &value) |
void | set_arg_vec3f (int index, const Vec3f &value) |
void | set_arg_vec4f (int index, const Vec4f &value) |
void | set_arg_buffer (int index, ComputeBuffer &buffer) |
void | set_arg_sampler (int index, ComputeSampler &sampler) |
void | set_arg_null (int index) |
Implementation | |
class | ComputeCommandQueue |
Compute program kernel object.