gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 547 forks source link

dx12: Store events inside fences for waiting #1849

Open msiglreith opened 6 years ago

msiglreith commented 6 years ago

Concerning an issue with the current wait_for_fences implementation for the ANY case, where a pending fence completion call might infer with following function calls, signalling the wrong event:

store an event along each fence, will be set once the fence gets signalled? We can safely reset the event on ResetFences due to externally synchronization requirement

kvark commented 5 years ago

Related to #2581