The CLMemory class is a base class for CLBuffer and CLImage2D.
More...
#include <CLMemory.h>
The CLMemory class is a base class for CLBuffer and CLImage2D.
◆ Ptr
smart pointer to this class type
◆ MemoryType
Memorys type available.
Enumerator |
---|
Buffer | |
Image2D | |
Invalid | |
◆ CLMemory() [1/2]
CLMemory Default constructor. Only inherit classes can use this constructor.
- Parameters
-
◆ CLMemory() [2/2]
icl::utils::CLMemory::CLMemory |
( |
CLMemory const & |
other | ) |
|
|
inline |
CLMemory default copy constructor.
- Parameters
-
◆ ~CLMemory()
virtual icl::utils::CLMemory::~CLMemory |
( |
| ) |
|
|
inlinevirtual |
◆ asCLBuffer()
CLBuffer* icl::utils::CLMemory::asCLBuffer |
( |
| ) |
|
|
inline |
asCLBuffer Casting function to cast to CLBuffer pointer (reinterpret_cast)
- Returns
- Casted pointer to CLBuffer
◆ asCLImage2D()
CLImage2D* icl::utils::CLMemory::asCLImage2D |
( |
| ) |
|
|
inline |
asCLImage2D Casting function to cast to CLImage2D pointer (reinterpret_cast)
- Returns
- Casted pointer to CLImage2D
◆ getByteDepth()
const icl32s icl::utils::CLMemory::getByteDepth |
( |
| ) |
const |
|
inline |
returns the bytedepth of the used data type (e.g. float32 = 4byte)
◆ getDimensions()
const std::vector<icl32s> icl::utils::CLMemory::getDimensions |
( |
| ) |
const |
|
inline |
returns the dimensions (3Dim-std::vector for x,y,z dimensions)
◆ getSize()
const icl64s icl::utils::CLMemory::getSize |
( |
| ) |
const |
|
inline |
returns total size of the memory (x*y*z)
◆ operator=()
operator = default assignment operator
- Parameters
-
- Returns
- This CLMemory instance
◆ setDimensions()
void icl::utils::CLMemory::setDimensions |
( |
icl32s const & |
x, |
|
|
icl32s const & |
y, |
|
|
icl32s const & |
z |
|
) |
| |
|
inlineprotected |
sets the dimensions x,y,z and total size
◆ m_byte_depth
icl32s icl::utils::CLMemory::m_byte_depth |
|
protected |
byte depth of the data type used (e.g. float32 = 4byte)
◆ m_dimensions
std::vector<icl32s> icl::utils::CLMemory::m_dimensions |
|
protected |
size of each dimension x,y,z
◆ m_size
icl64s icl::utils::CLMemory::m_size |
|
protected |
◆ m_type
The documentation for this class was generated from the following file:
- /Users/alneuman/vm/icl/ICLUtils/src/ICLUtils/CLMemory.h