add documentation for list-wgpu-backends

This commit is contained in:
Marcel Märtens 2024-01-29 16:15:19 +01:00
parent b523423404
commit 272837d4e5
2 changed files with 7 additions and 3 deletions

View File

@ -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,
}

View File

@ -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")]