Skip to main content

block_on_wgpu

Function block_on_wgpu 

pub fn block_on_wgpu<F>(device: &Device, fut: F) -> <F as Future>::Output
where F: Future,
Expand description

Block on a future, polling the device as needed.

This will deadlock if the future is awaiting anything other than GPU progress.