#include <switches.h>
Public Member Functions | |
PlaygroundSwitches () | |
PlaygroundSwitches (const fml::CommandLine &args) | |
Public Attributes | |
bool | enable_playground = false |
std::optional< std::chrono::milliseconds > | timeout |
bool | enable_vulkan_validation = false |
bool | use_swiftshader = false |
bool | use_angle = false |
bool | enable_wide_gamut = false |
Flags | flags |
Definition at line 16 of file switches.h.
|
default |
|
explicit |
Definition at line 15 of file switches.cc.
References enable_playground, enable_vulkan_validation, timeout, use_angle, and use_swiftshader.
bool impeller::PlaygroundSwitches::enable_playground = false |
Definition at line 17 of file switches.h.
Referenced by impeller::Playground::IsPlaygroundEnabled(), impeller::Playground::OpenPlaygroundHere(), impeller::DlPlayground::OpenPlaygroundHere(), impeller::EntityPlayground::OpenPlaygroundHere(), PlaygroundSwitches(), and impeller::Playground::WillRenderSomething().
bool impeller::PlaygroundSwitches::enable_vulkan_validation = false |
Definition at line 22 of file switches.h.
Referenced by impeller::PlaygroundImpl::Create(), impeller::interop::testing::PlaygroundTest::CreateContext(), impeller::PlaygroundImplVK::PlaygroundImplVK(), and PlaygroundSwitches().
bool impeller::PlaygroundSwitches::enable_wide_gamut = false |
Definition at line 36 of file switches.h.
Referenced by impeller::PlaygroundImplMTL::PlaygroundImplMTL(), impeller::GoldenPlaygroundTest::SetUp(), and impeller::PlaygroundTest::SetUp().
Flags impeller::PlaygroundSwitches::flags |
Definition at line 38 of file switches.h.
Referenced by impeller::PlaygroundImplMTL::PlaygroundImplMTL(), impeller::PlaygroundImplVK::PlaygroundImplVK(), impeller::GoldenPlaygroundTest::SetUp(), and impeller::PlaygroundTest::SetUp().
std::optional<std::chrono::milliseconds> impeller::PlaygroundSwitches::timeout |
Definition at line 21 of file switches.h.
Referenced by PlaygroundSwitches().
bool impeller::PlaygroundSwitches::use_angle = false |
Attempt to use Angle on the system instead of the available OpenGL ES implementation. This is on-by-default on macOS due to the broken-ness in the deprecated OpenGL implementation. On other platforms, it this opt-in via the flag with the system OpenGL ES implementation used by fault.
Definition at line 34 of file switches.h.
Referenced by impeller::PlaygroundTest::GetWindowTitle(), PlaygroundSwitches(), and impeller::GoldenPlaygroundTest::SetUp().
bool impeller::PlaygroundSwitches::use_swiftshader = false |
Seek a SwiftShader library in known locations and use it when running Vulkan. It is a fatal error to provide this option and not have the test find a SwiftShader implementation.
Definition at line 28 of file switches.h.
Referenced by impeller::PlaygroundTest::GetWindowTitle(), impeller::Playground::Playground(), and PlaygroundSwitches().