mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
add documentation for list-wgpu-backends
This commit is contained in:
parent
b523423404
commit
272837d4e5
@ -7,6 +7,9 @@
|
||||
//!
|
||||
//! Airshipper should only use arguments listed above! Since we will not try to
|
||||
//! be careful about their stability otherwise.
|
||||
//!
|
||||
//! Likewise Airshipper should only use the following subcommands:
|
||||
//! * `ListWgpuBackends`
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
#[derive(Parser)]
|
||||
@ -23,6 +26,7 @@ pub struct Args {
|
||||
|
||||
#[derive(Subcommand)]
|
||||
pub enum Commands {
|
||||
/// List available wgpu backends.
|
||||
ListBackends,
|
||||
/// List available wgpu backends. This is called by Airshipper to show a
|
||||
/// dropbox of available backends
|
||||
ListWgpuBackends,
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ fn main() {
|
||||
|
||||
if let Some(command) = args.command {
|
||||
match command {
|
||||
cli::Commands::ListBackends => {
|
||||
cli::Commands::ListWgpuBackends => {
|
||||
#[cfg(target_os = "windows")]
|
||||
let backends = &["dx11", "dx12", "vulkan"];
|
||||
#[cfg(target_os = "linux")]
|
||||
|
Loading…
Reference in New Issue
Block a user