Can a VAO take multiple vertex buffers? Topic is solved

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
jwwalker
Goblin
Posts: 224
Joined: Thu Aug 12, 2021 10:06 pm
Location: San Diego, CA, USA
x 17
Contact:

Can a VAO take multiple vertex buffers?

Post by jwwalker »

In the source code of Sample_DynamicGeometry, there is a comment:
//Now the Vao. We'll just use one vertex buffer source (multi-source not working yet)
Is this remark, which I think goes back to 2015, still valid? In other words, does the method VaoManager::createVertexArrayObject really accept multiple vertex buffers, or must it be passed a single buffer of interleaved vertex data?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Can a VAO take multiple vertex buffers?

Post by dark_sylinc »

The remark still holds.

Due to how the engine's memory layout is structured, it's become extremely hard to support multi-source vertex buffers. It's one of the downsides of the type of Azdo approach we followed.

And without enough incentive there weren't more efforts to explore possible solutions
jwwalker
Goblin
Posts: 224
Joined: Thu Aug 12, 2021 10:06 pm
Location: San Diego, CA, USA
x 17
Contact:

Re: Can a VAO take multiple vertex buffers?

Post by jwwalker »

Thanks. It would be nice if that were mentioned in the API docs of VaoManager::createVertexArrayObject.
Post Reply