LiteFX::Rendering::BufferAttribute::BufferAttribute¶
Constructors
Synopses¶
Declared in <litefx/rendering_api.hpp>
Initializes an empty buffer attribute.
[[dllimport, dllexport]] BufferAttribute() noexcept;
Creates a copy of a buffer attribute.
[[dllimport, dllexport]] BufferAttribute(BufferAttribute const& _other);
Takes over another instance of a buffer attribute.
[[dllimport, dllexport]] BufferAttribute(BufferAttribute&& _other) noexcept;
Initializes a new buffer attribute.
[[dllimport, dllexport]] BufferAttribute(
UInt32 location,
UInt32 offset,
BufferFormat format,
AttributeSemantic semantic,
UInt32 semanticIndex = 0) noexcept;
Parameters¶
| Name | Description |
|---|---|
| _other | The buffer attribute instance to copy. |
| 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. |