cranpose 0.9.22

Build desktop, mobile and web apps with composable Rust functions
Documentation
1
2
3
4
5
6
7
use std::sync::LazyLock;

pub(crate) static OFFSCREEN_INSTANCE: LazyLock<wgpu::Instance> = LazyLock::new(|| {
    let mut descriptor = wgpu::InstanceDescriptor::new_without_display_handle();
    descriptor.backends = wgpu::Backends::all();
    wgpu::Instance::new(descriptor)
});