Skip to main content

init

Function init 

Source
pub async fn init() -> Result<Arc<GpuContext>>
Expand description

Initialise the global GPU context (idempotent). Required before any GPU work in the browser, where initialisation cannot block.