|
TachyonUI 1.1.0
High-performance UI for building tools.
|
#include <cstddef>#include <cstdint>#include <optional>#include <span>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| struct | tachyon::GpuInfo |
| A GPU as the graphics API reports it, for ChooseGpu. More... | |
Namespaces | |
| namespace | tachyon |
Enumerations | |
| enum class | tachyon::GpuKind : uint8_t { tachyon::GpuKind::Other , tachyon::GpuKind::Integrated , tachyon::GpuKind::Discrete , tachyon::GpuKind::Virtual , tachyon::GpuKind::Cpu } |
| What kind of GPU a device is. More... | |
Functions | |
| std::string_view | tachyon::GpuKindName (GpuKind kind) |
| The kind's name, as a preference names it: "integrated", "discrete", "virtual", "cpu", "other". | |
| std::optional< size_t > | tachyon::ChooseGpu (std::span< const GpuInfo > gpus, std::string_view preference) |
| Which of gpus preference asks for: | |
| std::string | tachyon::GpuPreference (std::string_view appPreference) |
| The GPU preference in effect: the TACHYON_GPU environment variable when it's set, for a run without changing code; else appPreference. | |