Luna::RHI::VertexBufferView

Describes one vertex buffer view when binding one vertex buffer to the render pipeline.

struct Luna::RHI::VertexBufferView

Member objects

  • IResource* buffer

    The vertex buffer resource.

  • usize offset

    The offset, in bytes, of the first vertex from the beginning of the buffer.

  • u32 size

    The size, in bytes, of the vertex buffer range to bind.

  • u32 element_size

    The size, in butes, of every vertex element in the vertex buffer. The element size must be equal to InputBindingDesc::element_size of the pipeline state object used to draw this vertex buffer.