![]() |
Clover Git
OpenCL 1.1 software implementation
|
Simple buffer object. More...
#include <memobject.h>
Public Member Functions | |
Buffer (Context *ctx, size_t size, void *host_ptr, cl_mem_flags flags, cl_int *errcode_ret) | |
Constructor. | |
size_t | size () const |
Size of the buffer, in bytes. | |
Type | type () const |
Return that we are a Coal::MemObject::Buffer . | |
Private Attributes | |
size_t | p_size |
Simple buffer object.
Definition at line 140 of file memobject.h.
Buffer::Buffer | ( | Context * | ctx, |
size_t | size, | ||
void * | host_ptr, | ||
cl_mem_flags | flags, | ||
cl_int * | errcode_ret | ||
) |
Constructor.
ctx | parent Coal::Context |
size | size of the buffer, in bytes |
host_ptr | host pointer |
flags | memory flags |
errcode_ret | return code |
Definition at line 376 of file memobject.cpp.
Referenced by type().
size_t Buffer::size | ( | ) | const [virtual] |
Size of the buffer, in bytes.
Implements Coal::MemObject.
Definition at line 387 of file memobject.cpp.
References p_size.
Referenced by Coal::SubBuffer::SubBuffer().
MemObject::Type Buffer::type | ( | ) | const [virtual] |
Return that we are a Coal::MemObject::Buffer
.
Implements Coal::MemObject.
Definition at line 392 of file memobject.cpp.
References Buffer().
size_t Coal::Buffer::p_size [private] |
Definition at line 157 of file memobject.h.
Referenced by size().