Skip to main content

mln_gfx/
backend.rs

1// Ports include/mln/gfx/backend.hpp
2//
3// C++ builds one backend; the port can build several (WebGPU, Metal, Vulkan,
4// OpenGL), and the renderer asks a context which one it is of
5// (`Context::backend_type`).
6
7/// `gfx::Backend::Type`
8#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
9#[repr(u8)]
10pub enum Type {
11    OpenGL,
12    Metal,
13    Vulkan,
14    WebGPU,
15}