Skip to content

FiniteRenderBuffer

The FiniteRenderBuffer struct describes how vertex and optional index data are laid out within a Vulkan buffer managed by FiniteRender.

struct FiniteRenderBuffer {
bool _indices;
VkDeviceSize vertexOffset;
VkDeviceSize indexOffset;
uint32_t vertexSize;
uint32_t indexSize;
uint32_t indexCount;
uint32_t vertexCount;
};
TypeDescription
bool _indicesIndicates whether this buffer contains index data.
VkDeviceSize vertexOffsetByte offset to the start of vertex data in the buffer.
VkDeviceSize indexOffsetByte offset to the start of index data in the buffer.
uint32_t vertexSizeSize in bytes of the vertex data region.
uint32_t indexSizeSize in bytes of the index data region.
uint32_t indexCountNumber of indices stored in the buffer.
uint32_t vertexCountNumber of vertices stored in the buffer.

This struct should be created manually and used as a param for a finite buffer function.