Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::GLTF::ResourceManager::VertexLayoutKey Struct Reference

Vertex layout key used to select the vertex pool. More...

#include <GLTFResourceManager.hpp>

Detailed Description

Vertex layout key used to select the vertex pool.

When vertex data is split between multiple buffers, the offsets in each buffer must be consistent. For example, suppose we store position in buffer 0 (12 bytes) and normals + UVs in buffer 1 (20 bytes). If the the first allocation contains 100 vertices, the offsets for the second allocation will be 1200 and 2000 bytes correspondingly. If these offsets are not consistent, the vertex shader will read incorrect data. Vertex layout key is used to group compatible layouts in the same vertex pool.