Inviwo  0.9.10.1
Inviwo documentation
inviwo::BufferRepresentation Class Referenceabstract
+ Inheritance diagram for inviwo::BufferRepresentation:

Public Member Functions

virtual BufferRepresentationclone () 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 DataFormatBasegetDataFormat () const
 
std::string getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
virtual std::type_index getTypeIndex () const=0
 
void setOwner (BufferBase *owner)
 
BufferBasegetOwner ()
 
const BufferBasegetOwner () 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
 
BufferRepresentationoperator= (const BufferRepresentation &that)=default
 
- Protected Member Functions inherited from inviwo::DataRepresentation< BufferBase >
 DataRepresentation (const DataFormatBase *format)
 
 DataRepresentation (const DataRepresentation &rhs)=default
 
DataRepresentationoperator= (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 DataFormatBasedataFormatBase_
 
BufferBaseowner_
 

Additional Inherited Members

- Public Types inherited from inviwo::DataRepresentation< BufferBase >
using ReprOwner = BufferBase
 

Member Function Documentation

◆ getSize()

virtual size_t inviwo::BufferRepresentation::getSize ( ) const
pure virtual

Return the number of elements in the buffer.

Implemented in inviwo::BufferGL, inviwo::BufferRAMPrecision< T, Target >, and inviwo::BufferRAMPrecision< vec3 >.

◆ getSizeOfElement()

size_t inviwo::BufferRepresentation::getSizeOfElement ( ) const
virtual

Return size of buffer element in bytes.


The documentation for this class was generated from the following files: