Overte C++ Documentation
gpu::Stream::Attribute Class Reference

#include <Stream.h>

Collaboration diagram for gpu::Stream::Attribute:

Public Member Functions

 Attribute (Slot slot, Slot channel, Element element, Offset offset=0, Frequency frequency=PER_VERTEX)
 
uint32 getSize () const
 
std::string getKey () const
 Generate a string key describing the attribute uniquely. More...
 

Detailed Description

The attribute description. Every thing that is needed to detail a stream attribute and how to interpret it.

Constructor & Destructor Documentation

◆ Attribute()

gpu::Stream::Attribute::Attribute ( Slot  slot,
Slot  channel,
Element  element,
Offset  offset = 0,
Frequency  frequency = PER_VERTEX 
)
inline
Parameters
slotSlot on which data will be available to the shader.
channelBinding number which this attribute gets data from.
elementObject describing element type.
offsetOffset in bytes.
frequencyWhen is current position incremented by stride.

Member Function Documentation

◆ getKey()

std::string Stream::Attribute::getKey ( ) const

Generate a string key describing the attribute uniquely.

Returns
A string key.

◆ getSize()

uint32 gpu::Stream::Attribute::getSize ( ) const
inline
Returns
Size of the attribute in bytes.

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