mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #343
343: Document primary/secondary backend bit r=kvark a=rukai Happy to add more detail, but this should be sufficient for the user to understand what PRIMARY/SECONDARY mean. Co-authored-by: Rukai <rubickent@gmail.com>
This commit is contained in:
@@ -93,7 +93,9 @@ bitflags! {
|
||||
const METAL = 1 << Backend::Metal as u32;
|
||||
const DX12 = 1 << Backend::Dx12 as u32;
|
||||
const DX11 = 1 << Backend::Dx11 as u32;
|
||||
/// Vulkan + METAL + DX12
|
||||
const PRIMARY = Self::VULKAN.bits | Self::METAL.bits | Self::DX12.bits;
|
||||
/// OpenGL + DX11
|
||||
const SECONDARY = Self::GL.bits | Self::DX11.bits;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user