Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::BufferRepresentation Class Referenceabstract
+ Inheritance diagram for inviwo::BufferRepresentation:

Public Member Functions

virtual BufferRepresentationclone () const override=0
 
virtual const DataFormatBasegetDataFormat () const =0
 
std::string_view getDataFormatString () const
 
DataFormatId getDataFormatId () const
 
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 >
virtual std::type_index getTypeIndex () const=0
 
void setOwner (const BufferBase *owner)
 
const BufferBasegetOwner () const
 
bool isValid () const
 
void setValid (bool valid)
 
virtual void updateResource (const ResourceMeta &) const
 

Protected Member Functions

 BufferRepresentation (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 DataRepresentation &rhs)=default
 
DataRepresentationoperator= (const DataRepresentation &that)=default
 

Protected Attributes

BufferUsage usage_
 
BufferTarget target_
 
- Protected Attributes inherited from inviwo::DataRepresentation< BufferBase >
bool isValid_
 
const BufferBaseowner_
 

Additional Inherited Members

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

Member Function Documentation

◆ clone()

virtual BufferRepresentation * inviwo::BufferRepresentation::clone ( ) const
overridepure virtual

◆ 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< std::uint32_t >.

◆ getSizeOfElement()

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

Return size of buffer element in bytes.

◆ setSize()

virtual void inviwo::BufferRepresentation::setSize ( size_t size)
pure virtual

Implemented in inviwo::BufferGL.


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