Skip to content

LiteFX::Rendering::BufferAttribute::BufferAttribute

Initializes a new buffer attribute.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] BufferAttribute(
    UInt32 location,
    UInt32 offset,
    BufferFormat format,
    AttributeSemantic semantic,
    UInt32 semanticIndex = 0) noexcept;

Parameters

NameDescription
locationThe location the buffer attribute is bound to.
offsetThe offset of the attribute relative to the buffer.
formatThe format of the buffer attribute.
semanticThe semantic of the buffer attribute.
semanticIndexThe semantic index of the buffer attribute.