syrillian_render 0.7.1

Renderer of the Syrillian Game Engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
use wgpu::Backends;

pub fn first_backend_to_str(backends: Backends) -> &'static str {
    match backends.iter().next() {
        Some(Backends::METAL) => "metal",
        Some(Backends::DX12) => "dx12",
        Some(Backends::GL) => "opengl",
        Some(Backends::VULKAN) => "vulkan",
        _ => "",
    }
}