Add flag for software rendering.

This flag is currently unused.

PiperOrigin-RevId: 885453938
Change-Id: Ia2112410ff12c7b18ad154f18887d4d795bafa3d
This commit is contained in:
Haroon Qureshi
2026-03-18 01:47:21 -07:00
committed by Copybara-Service
parent 60be42e83c
commit bc1f9513be
5 changed files with 27 additions and 3 deletions
+7
View File
@@ -1761,6 +1761,7 @@ void App::MainMenuGui() {
ImGui::Separator();
#ifdef __linux__
if (ImGui::BeginMenu("Graphics Mode (Experimental)")) {
std::optional<platform::GraphicsMode> mode;
if (ImGui::MenuItem(
@@ -1783,6 +1784,11 @@ void App::MainMenuGui() {
gfx_mode_ == platform::GraphicsMode::FilamentOpenGlHeadless)) {
mode = platform::GraphicsMode::FilamentOpenGlHeadless;
}
if (ImGui::MenuItem(
"Filament OpenGL Software", nullptr,
gfx_mode_ == platform::GraphicsMode::FilamentOpenGlSoftware)) {
mode = platform::GraphicsMode::FilamentOpenGlSoftware;
}
if (ImGui::MenuItem(
"Filament Vulkan", nullptr,
gfx_mode_ == platform::GraphicsMode::FilamentVulkan)) {
@@ -1802,6 +1808,7 @@ void App::MainMenuGui() {
}
ImGui::EndMenu();
}
#endif // __linux__
ImGui::EndMenu();
}