You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the codebase I see that Fence has two associated functions: ready(&self) -> Result<bool, OomError> and wait(&self, timeout: Option<Duration>) -> Result<(), FenceWaitError>. When I'm constructing a future like in the examples I'm getting an instance of FenceSignalFuture (after calling then_signal_fence_and_flush).
But I want to keep updating my scene on CPU, while checking each time if previous frame finished rendering and freed access to storage buffers so that I can upload new data to them. For that I wanted to have some function like ready to check if future is ready without blocking the cpu.
Can that be added? If no, then how can I get the behavior I described?
I can try to make a PR for that, but I'm not sure right now if I'm using the API in a correct way, so asking for a suggestion
The text was updated successfully, but these errors were encountered:
In the codebase I see that
Fence
has two associated functions:ready(&self) -> Result<bool, OomError>
andwait(&self, timeout: Option<Duration>) -> Result<(), FenceWaitError>
. When I'm constructing a future like in the examples I'm getting an instance ofFenceSignalFuture
(after callingthen_signal_fence_and_flush
).But I want to keep updating my scene on CPU, while checking each time if previous frame finished rendering and freed access to storage buffers so that I can upload new data to them. For that I wanted to have some function like
ready
to check if future is ready without blocking the cpu.Can that be added? If no, then how can I get the behavior I described?
I can try to make a PR for that, but I'm not sure right now if I'm using the API in a correct way, so asking for a suggestion
The text was updated successfully, but these errors were encountered: