Inviwo
0.9.10.1
Inviwo documentation
|
Public Member Functions | |
virtual BufferRepresentation * | clone () const override=0 |
virtual void | setSize (size_t size)=0 |
virtual size_t | getSize () const =0 |
virtual size_t | getSizeOfElement () const |
BufferUsage | getBufferUsage () const |
BufferTarget | getBufferTarget () const |
Public Member Functions inherited from inviwo::DataRepresentation< BufferBase > | |
const DataFormatBase * | getDataFormat () const |
std::string | getDataFormatString () const |
DataFormatId | getDataFormatId () const |
virtual std::type_index | getTypeIndex () const=0 |
void | setOwner (BufferBase *owner) |
BufferBase * | getOwner () |
const BufferBase * | getOwner () const |
bool | isValid () const |
void | setValid (bool valid) |
Protected Member Functions | |
BufferRepresentation (const DataFormatBase *format, BufferUsage usage=BufferUsage::Static, BufferTarget target=BufferTarget::Data) | |
BufferRepresentation (const BufferRepresentation &rhs)=default | |
BufferRepresentation & | operator= (const BufferRepresentation &that)=default |
Protected Member Functions inherited from inviwo::DataRepresentation< BufferBase > | |
DataRepresentation (const DataFormatBase *format) | |
DataRepresentation (const DataRepresentation &rhs)=default | |
DataRepresentation & | operator= (const DataRepresentation &that)=default |
void | setDataFormat (const DataFormatBase *format) |
Protected Attributes | |
BufferUsage | usage_ |
BufferTarget | target_ |
Protected Attributes inherited from inviwo::DataRepresentation< BufferBase > | |
bool | isValid_ |
const DataFormatBase * | dataFormatBase_ |
BufferBase * | owner_ |
Additional Inherited Members | |
Public Types inherited from inviwo::DataRepresentation< BufferBase > | |
using | ReprOwner = BufferBase |
|
pure virtual |
Return the number of elements in the buffer.
Implemented in inviwo::BufferGL, inviwo::BufferRAMPrecision< T, Target >, and inviwo::BufferRAMPrecision< vec3 >.
|
virtual |
Return size of buffer element in bytes.