SPARK
0.1.0
A general purpose game engine written in C++.
|
Describes the layout of a vertex buffer. More...
#include <VertexBuffer.h>
Public Member Functions | |
virtual std::vector< const BufferAttribute * > | attributes () const noexcept=0 |
Gets the attributes of the vertex buffer. | |
virtual void | addAttribute (BufferAttribute &&attribute) noexcept=0 |
Adds an attribute to the vertex buffer layout. | |
![]() | |
virtual std::size_t | elementSize () const noexcept=0 |
Gets the size of a single element in the buffer. | |
virtual unsigned int | binding () const noexcept=0 |
Gets the binding point the buffer will be bound to. | |
virtual BufferType | type () const noexcept=0 |
Gets the type of the buffer. | |
Describes the layout of a vertex buffer.
|
pure virtualnoexcept |
Adds an attribute to the vertex buffer layout.
attribute | The BufferAttribute to add. |
Implemented in spark::render::vk::VulkanVertexBufferLayout.
|
nodiscardpure virtualnoexcept |
Gets the attributes of the vertex buffer.
Implemented in spark::render::vk::VulkanVertexBufferLayout.