Skip to main content

cached_device

Function cached_device 

Source
pub fn cached_device() -> Result<&'static (Device, Queue)>
Expand description

Return the cached device/queue pair for repeated scans.

§Errors

Returns an error if the GPU adapter or device cannot be initialized.