Message 1 of 3
RenderBufferApi::update_buffer completion?
Not applicable
06-27-2017
03:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm using the Plugin API's RenderBufferApi to dynamically update a texture. So for this I'm using the update_buffer function.
It seems to me that this function completes asynchronously.
Which leads me to my question, how do I know when this method call has completed?
How do I know when it's safe to access the buffer again on my side? Specifically, delete it or update it?
Peeking into the engine source it looks like I can use the RenderInterfaceApi::create_fence and wait_for_fence for this. Is that correct?
Thanks
Reply
Reply