]> git.tdb.fi Git - libs/gl.git/commit
Add support for padding in vertex formats
authorMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 13:39:01 +0000 (15:39 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 13:48:20 +0000 (15:48 +0200)
commit8a8cce8ef4ee28b3572a72958b8b407759f9f826
treead55b203792a44a51ec646025cc03611fb7650cd
parentc8e122dc5c859c72ff98840477adbd263fe914c3
Add support for padding in vertex formats

Vulkan requires attributes to be correctly aligned, so depending on the
combination of types padding may be necessary.  It's better to make it
explicit so support for raw mesh data files can be added in the future.
source/backends/opengl/vertexsetup_backend.cpp
source/builders/vertexarraybuilder.cpp
source/core/vertexformat.cpp
source/core/vertexformat.h
source/core/vertexsetup.cpp