Luna::RHI::InputAttributeDesc

Describes one attribute in the input layout.

struct Luna::RHI::InputAttributeDesc

Member objects

  • const c8* semantic_name

    The semantic name of this attribute. For exmaple, "COLOR", "TEXCOORD", etc.

  • u32 semantic_index

    The semantic index of this attribute. Use this to differentiate attributes with the same semantic name.

  • u32 location

    The location of this input attribute in the shader.

  • u32 binding_slot

    The belonging binding slot of this attribute.

  • u32 offset

    The offset of this attribute from the beginning of the element.

  • Format format

    The format of this attribute.