LiteFX 0.4.1.2025
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 () noexcept | |
Initializes an empty buffer attribute. | |
BufferAttribute (UInt32 location, UInt32 offset, BufferFormat format, AttributeSemantic semantic, UInt32 semanticIndex=0) noexcept | |
Initializes a new buffer attribute. | |
BufferAttribute (const BufferAttribute &_other) | |
Creates a copy of a buffer attribute. | |
BufferAttribute (BufferAttribute &&_other) noexcept | |
Takes over another instance of a buffer attribute. | |
BufferAttribute & | operator= (const BufferAttribute &_other) |
Assigns a buffer attribute by copying it. | |
BufferAttribute & | operator= (BufferAttribute &&_other) noexcept |
Assigns a buffer attribute by taking it over. | |
virtual | ~BufferAttribute () noexcept |
Releases the buffer attribute instance. | |
virtual UInt32 | location () const noexcept |
Returns the location of the buffer attribute. | |
virtual BufferFormat | format () const noexcept |
Returns the format of the buffer attribute. | |
virtual UInt32 | offset () const noexcept |
Returns the offset of the buffer attribute. | |
virtual AttributeSemantic | semantic () const noexcept |
Returns the semantic of the buffer attribute. | |
virtual UInt32 | semanticIndex () const noexcept |
Returns the semantic index of the buffer attribute. | |
Stores meta data about a buffer attribute, i.e. a member or field of a descriptor or buffer.
|
noexcept |
Initializes an empty buffer attribute.
|
noexcept |
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. |
|
default |
Creates a copy of a buffer attribute.
_other | The buffer attribute instance to copy. |
|
defaultnoexcept |
Takes over another instance of a buffer attribute.
_other | The buffer attribute instance to take over. |
|
virtualdefaultnoexcept |
Releases the buffer attribute instance.
|
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.
|
defaultnoexcept |
Assigns a buffer attribute by taking it over.
_other | The buffer attribute to take over. |
|
default |
Assigns a buffer attribute by copying it.
_other | The buffer attribute instance to copy. |
|
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.