Skip to content

Commit 4591f40

Browse files
Expose GLTF model vertex pool
Add a GLTF::Model accessor for the vertex pool backing the model vertex allocation so renderers can bind vertex buffers by pool.
1 parent 929cecd commit 4591f40

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

AssetLoader/interface/GLTFLoader.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,13 @@ struct Model
10681068
return VertexData.PoolId;
10691069
}
10701070

1071+
IVertexPool* GetVertexPool() const
1072+
{
1073+
return VertexData.pAllocation != nullptr ?
1074+
VertexData.pAllocation->GetPool() :
1075+
nullptr;
1076+
}
1077+
10711078
/// Returns an index of the index buffer allocator in the resource manager.
10721079

10731080
/// This index should be passed to the GetIndexBuffer method of the resource manager.

0 commit comments

Comments
 (0)