tp::VertexInputBinding struct

Describes the shader binding for vertex input buffer and the layout of its attributes.

Constructors, destructors, conversion operators

VertexInputBinding(ArrayView<const VertexInputAttribute> attributes, uint32_t stride, VertexInputRate inputRate = VertexInputRate::Vertex)

Function documentation

tp::VertexInputBinding::VertexInputBinding(ArrayView<const VertexInputAttribute> attributes, uint32_t stride, VertexInputRate inputRate = VertexInputRate::Vertex)

Parameters
attributes The description of the individual vertex input attributes present in this binding.
stride The stride in bytes between consecutive elements in the buffer.
inputRate Whether the elements are addressed by the index of the vertex or instance.