Kanzi 4.0.0-beta2
kanzi::gfx::VertexAttribute Struct Reference

Describes an individual vertex attribute, typically part of a vertex binding. More...

#include <kanzi/gfx/create_info.hpp>

Public Member Functions

int compare (const VertexAttribute &other) const
 Perform comparison against another vertex attribute.
 

Public Attributes

Format format
 The format of the vertex attribute.
 
string name
 The name of the attribute as defined in the shader.
 
uint32_t offset
 The offset in bytes within the per-vertex stride.
 

Detailed Description

Describes an individual vertex attribute, typically part of a vertex binding.

Since
Kanzi 4.0.0

Member Function Documentation

◆ compare()

int kanzi::gfx::VertexAttribute::compare ( const VertexAttribute & other) const
inline

Perform comparison against another vertex attribute.

Parameters
otherVertex attribute to compare against.
Returns
Negative value if this appears before the other object in ordering. Positive value if this appears after. 0 if equal.

Member Data Documentation

◆ name

string kanzi::gfx::VertexAttribute::name

The name of the attribute as defined in the shader.

◆ format

Format kanzi::gfx::VertexAttribute::format

The format of the vertex attribute.

◆ offset

uint32_t kanzi::gfx::VertexAttribute::offset

The offset in bytes within the per-vertex stride.


The documentation for this struct was generated from the following file: