LiteFX 0.3.1.2022
Computer Graphics Engine
|
Stores meta data about a buffer attribute, i.e. a member or field of a descriptor or buffer. More...
#include <rendering_api.hpp>
Classes | |
class | BufferAttributeImpl |
Public Member Functions | |
BufferAttribute () | |
Initializes an empty buffer attribute. More... | |
BufferAttribute (const UInt32 &location, const UInt32 &offset, const BufferFormat &format, const AttributeSemantic &semantic, const UInt32 &semanticIndex=0) | |
Initializes a new buffer attribute. More... | |
BufferAttribute (BufferAttribute &&) noexcept | |
BufferAttribute (const BufferAttribute &) | |
virtual | ~BufferAttribute () noexcept |
virtual const UInt32 & | location () const noexcept |
Returns the location of the buffer attribute. More... | |
virtual const BufferFormat & | format () const noexcept |
Returns the format of the buffer attribute. More... | |
virtual const UInt32 & | offset () const noexcept |
Returns the offset of the buffer attribute. More... | |
virtual const AttributeSemantic & | semantic () const noexcept |
Returns the semantic of the buffer attribute. More... | |
virtual const UInt32 & | semanticIndex () const noexcept |
Returns the semantic index of the buffer attribute. More... | |
Stores meta data about a buffer attribute, i.e. a member or field of a descriptor or buffer.
BufferAttribute::BufferAttribute | ( | ) |
Initializes an empty buffer attribute.
BufferAttribute::BufferAttribute | ( | const UInt32 & | location, |
const UInt32 & | offset, | ||
const BufferFormat & | format, | ||
const AttributeSemantic & | semantic, | ||
const UInt32 & | semanticIndex = 0 |
||
) |
Initializes a new buffer attribute.
location | The location the buffer attribute is bound to. |
offset | The offset of the attribute relative to the buffer. |
format | The format of the buffer attribute. |
semantic | The semantic of the buffer attribute. |
semanticIndex | The semantic index of the buffer attribute. |
|
noexcept |
BufferAttribute::BufferAttribute | ( | const BufferAttribute & | _other | ) |
|
virtualdefaultnoexcept |
|
virtualnoexcept |
Returns the format of the buffer attribute.
|
virtualnoexcept |
Returns the location of the buffer attribute.
Locations can only be specified in Vulkan and are implicitly generated based on semantics for DirectX. However, it is a good practice to provide them anyway.
|
virtualnoexcept |
Returns the offset of the buffer attribute.
|
virtualnoexcept |
Returns the semantic of the buffer attribute.
Semantics are only used in DirectX and HLSL, however it is a good practice to provide them anyway.