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

Describes a vertex buffer binding. More...

#include <kanzi/gfx/create_info.hpp>

Public Member Functions

int compare (const VertexBinding &other) const
 Perform comparison against another vertex binding.
 

Public Attributes

vector< VertexAttributeattributes
 List of Vertex Attributes.
 
VertexInputRate bindType
 The bind type of the shader, per vertex or per instance.
 
uint32_t bufferBindSlot
 The buffer binding slot.
 
uint32_t stride
 The stride in bytes for each vertex.
 

Detailed Description

Describes a vertex buffer binding.

Since
Kanzi 4.0.0

Member Function Documentation

◆ compare()

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

Perform comparison against another vertex binding.

Parameters
otherVertex binding 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

◆ bufferBindSlot

uint32_t kanzi::gfx::VertexBinding::bufferBindSlot

The buffer binding slot.

◆ stride

uint32_t kanzi::gfx::VertexBinding::stride

The stride in bytes for each vertex.

◆ bindType

VertexInputRate kanzi::gfx::VertexBinding::bindType

The bind type of the shader, per vertex or per instance.

◆ attributes

vector<VertexAttribute> kanzi::gfx::VertexBinding::attributes

List of Vertex Attributes.


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