Skip to content

How to implement swap of buffers? #1054

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

You must be logged in to vote

Dynamic data in the VSG is handled via the vsg::TransferTask, this multi-buffers the data and handles all the transfer and synchronization for you. You just need to set the vsg::Data::properties.dataVariance to DYNAMIC_DATA and call data->dirty() each time the data is updated. Have a look at the vsgdynamic* examples in vsgExamples:

https://github.com/vsg-dev/vsgExamples/tree/master/examples/state

I have written up this topic here on this forum and the old vsg-users googlegroup so have a look through the archives for more discussion on this topic.

My plan is to keep refining vsg::DataTransfer to handle parts of the compile traversal work, and handle one of copying of data rather than relyi…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Anshi701
Comment options

@robertosfield
Comment options

Answer selected by Anshi701
@Anshi701
Comment options

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