Skip to main content

new_instance

Function new_instance 

Source
pub(crate) fn new_instance() -> Instance
Expand description

The instance a context’s device comes from.

Natively the environment chooses, so WGPU_BACKEND selects a backend the same way it does in an application — which is how the GLES and WebGL2 paths are reached on a machine whose default is Vulkan.