feat: GPU-Wahl in Oberfläche, CLI und Status, Doku und Klicktests (#1272)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -65,6 +65,20 @@ impl GpuWahl {
|
||||
}
|
||||
}
|
||||
|
||||
/// Beschreibung für Menschen, mit den GPUs des Profils.
|
||||
pub fn beschreibung(self, gpus: &[u32]) -> String {
|
||||
let liste = gpus
|
||||
.iter()
|
||||
.map(u32::to_string)
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ");
|
||||
match self {
|
||||
Self::Fest => format!("fest {liste}"),
|
||||
Self::Auto => format!("automatisch unter {liste}"),
|
||||
Self::Alle => "automatisch, alle Grafikkarten".to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn parse(text: &str) -> Option<Self> {
|
||||
match text {
|
||||
"fest" => Some(Self::Fest),
|
||||
|
||||
Reference in New Issue
Block a user