Add flag for software rendering.
This flag is currently unused. PiperOrigin-RevId: 885453938 Change-Id: Ia2112410ff12c7b18ad154f18887d4d795bafa3d
This commit is contained in:
committed by
Copybara-Service
parent
60be42e83c
commit
bc1f9513be
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user