3#include "pixelbullet/application/specification.h"
14 std::optional<uint32_t> gpu_index;
15 std::optional<GraphicsDevicePreference> gpu_preference;
18enum class LaunchGpuSelectorSource : uint8_t
21 ExplicitGpuPreference,
29 std::filesystem::path path;
30 std::optional<SavedGpuLaunchDefault> saved_default;
31 std::string warning_message;
37 std::filesystem::path path;
38 std::optional<SavedGpuLaunchDefault> saved_default;
39 LaunchGpuSelectorSource selector_source = LaunchGpuSelectorSource::ImplicitAuto;
40 bool applied_saved_default =
false;
41 std::string warning_message;
44[[nodiscard]] std::filesystem::path GetDefaultLaunchGpuDefaultsPath(
const std::filesystem::path& binary_path);
46[[nodiscard]]
bool SaveLaunchGpuDefault(
const std::filesystem::path& path,
const SavedGpuLaunchDefault& saved_default,
47 std::string* error_message);
48[[nodiscard]]
bool ClearLaunchGpuDefault(
const std::filesystem::path& path, std::string* error_message);
Definition specification.h:79
Definition launch_gpu_defaults.h:28
Definition launch_gpu_defaults.h:35
Definition launch_gpu_defaults.h:13