pub fn try_init_device(
setup: WgpuSetup,
options: RuntimeOptions,
) -> Result<WgpuDevice, WgpuInitError>Expand description
Register an existing setup without changing its enabled GPU capabilities.
Uses AutoCompiler with WGSL fallback. Use try_init_device_with_api to require
an explicit graphics API and its compiler support. The supplied device must enable
the features required by the selected compiler, including native extensions when
using SPIR-V or MSL. Registration does not
validate every native requirement. Each call allocates a new runtime identity;
repeated registration of the same handles is not detected. Register once, then
clone the returned device.