Skip to content

Update only part of dynamic data? #1125

Answered by robertosfield
Anshi701 asked this question in Q&A
Discussion options

You must be logged in to vote

There isn't presently an example that illustrates how to do it but it should be possible using proxy data objects that points to section of the large data.

vsg::Array/Array2D/Array3D have support for using using another storage vsg::Data as the data storage and you can offset into this vsg::Data so address just a portion of it. Then you can create a vsg::BufferInfo that use the portion of the vsg::Array.

These proxy data objects are lightweight as the don't store any data themselves so this extra wrapping really is just a mechanism for specifying the portion you want to work with.

I hope this make sense.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anshi701
Comment options

Answer selected by Anshi701
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants