group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
GraphicsConfig.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <string>
7
20
27
28[[nodiscard]] GraphicsConfig loadGraphicsConfig(const char* path);
29
32[[nodiscard]] const char* gpuBackendHintString(GpuBackend backend);
GraphicsConfig loadGraphicsConfig(const char *path)
Definition GraphicsConfig.cpp:41
GpuBackend
Selected GPU backend / driver.
Definition GraphicsConfig.hpp:14
@ Direct3D12
Definition GraphicsConfig.hpp:16
@ Auto
Definition GraphicsConfig.hpp:15
@ Vulkan
Definition GraphicsConfig.hpp:17
@ Metal
Definition GraphicsConfig.hpp:18
const char * gpuBackendHintString(GpuBackend backend)
Map GpuBackend to the string SDL expects in SDL_HINT_GPU_DRIVER.
Definition GraphicsConfig.cpp:64
Definition GraphicsConfig.hpp:22
GpuBackend backend
Preferred backend.
Definition GraphicsConfig.hpp:25