Class Buffer¶
Defined in File buffer.hpp
Class Documentation¶
-
class
legion::core::compute
::
Buffer
¶ Wraps an OpenCL buffer in a more “User-Friendly Interface” You would normally obtain these via Context::createBuffer()
Public Functions
-
Buffer
(cl_context, void*, size_type, size_type, size_type, cl_mem_object_type, cl_image_format*, buffer_type, std::string)¶
-
Buffer
(cl_context, cl_uint, buffer_type, bool, std::string)¶
-
Buffer
(cl_context, cl_uint, cl_uint, cl_uint, buffer_type, std::string)¶
-
Buffer
(cl_context, byte*, size_type, buffer_type, std::string)¶
-
void
rename
(const std::string &name)¶
-
~Buffer
()¶
-
inline bool
hasName
() const¶ Checks if the buffer is named.
-
inline bool
isReadBuffer
() const¶ Checks if OpenCL can read from this buffer.
-
inline bool
isWriteBuffer
() const¶ Checks if OpenCL can write to this buffer.
-
inline bool
isValid
() const¶
-