PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
launch_gpu_defaults.h
1#pragma once
2
3#include "pixelbullet/graphics/gpu_selection.h"
4
5#include <cstdint>
6#include <filesystem>
7#include <optional>
8#include <string>
9
10namespace pixelbullet
11{
13{
14 std::optional<uint32_t> gpu_index;
15 std::optional<GraphicsDevicePreference> gpu_preference;
16};
17
19{
20 std::filesystem::path path;
21 std::optional<SavedGpuLaunchDefault> saved_default;
22 std::string warning_message;
23};
24
25[[nodiscard]] std::filesystem::path GetDefaultLaunchGpuDefaultsPath(const std::filesystem::path& binary_path);
26[[nodiscard]] LaunchGpuDefaultsLoadResult LoadLaunchGpuDefaults(const std::filesystem::path& path);
27[[nodiscard]] bool SaveLaunchGpuDefault(const std::filesystem::path& path, const SavedGpuLaunchDefault& saved_default,
28 std::string* error_message);
29[[nodiscard]] bool ClearLaunchGpuDefault(const std::filesystem::path& path, std::string* error_message);
30[[nodiscard]] std::string DescribeSavedGpuLaunchDefault(const SavedGpuLaunchDefault& saved_default);
31} // namespace pixelbullet
Definition launch_gpu_defaults.h:19
Definition launch_gpu_defaults.h:13