Skip to content

Commit f3a1299

Browse files
RevengeRipflightlessmango
authored andcommitted
vulkan: recognize SDL GPU API
1 parent 7c255e8 commit f3a1299

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/overlay.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ enum EngineTypes
3636
FERAL3D,
3737
TOGL,
3838

39-
GAMESCOPE
39+
GAMESCOPE,
40+
SDL
4041
};
4142

4243
struct swapchain_stats {
@@ -94,11 +95,11 @@ struct LOAD_DATA {
9495
inline const char* engine_name(const swapchain_stats& sw_stats) {
9596
const char* engines[] = {
9697
"Unknown", "OpenGL", "VULKAN", "DXVK", "VKD3D", "DAMAVAND",
97-
"ZINK", "WINED3D", "Feral3D", "ToGL", "GAMESCOPE"
98+
"ZINK", "WINED3D", "Feral3D", "ToGL", "GAMESCOPE", "SDL"
9899
};
99100
const char* engines_short[] = {
100101
"Unknown", "OGL", "VK", "DXVK", "VKD3D", "DV",
101-
"ZINK", "WD3D", "Feral3D", "ToGL", "GS"
102+
"ZINK", "WD3D", "Feral3D", "ToGL", "GS", "SDL"
102103
};
103104

104105
auto engine = sw_stats.engine;

src/vulkan.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,9 @@ static VkResult overlay_CreateInstance(
20172017
else if (engineName == "Feral3D")
20182018
engine = FERAL3D;
20192019

2020+
else if (engineName == "SDLGPU")
2021+
engine = SDL;
2022+
20202023
else
20212024
engine = VULKAN;
20222025
}

0 commit comments

Comments
 (0)