14 attribute.
type = type;
15 attribute.
buffer.
size = elementSize * elementsCount;
21 _attributes.push_back(std::move(attribute));
Resource::SharedPtr< Render::Mesh > build()
void addAttributeBuffer(const void *data, uint32_t elementSize, uint32_t elementsCount, Render::Mesh::PrimitiveSet::Attribute::Type type)
enum lug::Graphics::Render::Mesh::PrimitiveSet::Attribute::Type type
Dummy class for a shared pointer.
Resource::SharedPtr< lug::Graphics::Render::Mesh > build(const ::lug::Graphics::Builder::Mesh &builder)
struct lug::Graphics::Render::Mesh::PrimitiveSet::Attribute::Buffer buffer
uint32_t size
The size of the above data buffer, in bytes.
char * data
The data of the buffer.
uint32_t elementsCount
The number of elements (indices, vertices, normals)