载入中...
搜索中...
未找到
LightingMode.cpp
浏览该文件的文档.
46 if (type == "cpu" || containsInsensitive(name, "llvmpipe") || containsInsensitive(name, "lavapipe"))
51 if (std::getenv("CI") || std::getenv("GITHUB_ACTIONS") || std::getenv("EVENGINE_CI")) return LightingPreset::Ci;
59 Diagnostic::error(DiagnosticCode::NotFound, "EVENGINE_LIGHTING_MODE unset", "graphics.LightingMode.env"));
62 if (m == "forwardplus" || m == "forward+") return Result<LightingMode>::success(LightingMode::ForwardPlus);
65 Diagnostic::error(DiagnosticCode::Unsupported, "EVENGINE_LIGHTING_MODE must be \"forwardPlus\" or \"hybrid\"",
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< LightingMode > lightingModeFromEnv()
Optional explicit mode from EVENGINE_LIGHTING_MODE=forwardPlus|hybrid.
Definition LightingMode.cpp:55
LightingPreset suggestedLightingPreset()
Suggest a lighting preset from OS, GPU type/name, and env.
Definition LightingMode.cpp:27
@ ForwardPlus
LightingPreset
Platform lighting quality preset (does not replace an explicit setLightingMode).
Definition LightingMode.h:31
@ NotFound
@ Unsupported
Definition Container.h:602