载入中...
搜索中...
未找到
RenderControl.cpp
浏览该文件的文档.
86bool RenderControl::supports(const std::string &feature) const { return isKnownFeature(feature); }
92bool RenderControl::isDeferredLightingAvailable() const { return gfx_ != nullptr && gfx_->supportsDeferredLighting(); }
96 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "unknown LightingMode value",
111 if (name == "forwardPlus" || name == "forward+") return setLightingMode(LightingMode::ForwardPlus);
121 if (preset == LightingPreset::Desktop && isDeferredLightingAvailable()) mode = LightingMode::Hybrid;
155 if (gfx_ && (feature == "ssr" || feature == "rtgi" || feature == "reflectionChain" || feature == "rtx")) {
167 if ((feature == "ssr" || feature == "rtgi" || feature == "reflectionChain" || feature == "rtx") && enabled)
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
void ignore(std::string_view reason={}) const noexcept
Explicitly discard this result after documenting the reason.
Definition Result.h:537
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
void invalidateTemporalHistory()
Discard TAA history after a render-chain discontinuity.
Definition AntiAliasing.cpp:411
void invalidateHistory()
Discard temporal GI history after a render-chain discontinuity.
Definition GlobalIllumination.h:67
Definition Graphics.h:125
ScreenSpaceReflection * pipelineScreenSpaceReflection()
Pipeline screen space reflection.
Definition Graphics.cpp:1601
GlobalIllumination * pipelineGlobalIllumination()
Pipeline global illumination.
Definition Graphics.cpp:1507
virtual bool supportsDeferredLighting() const
True when the backend can run Hybrid clustered deferred lighting.
Definition Graphics.h:245
Result< void > setLightingMode(LightingMode mode)
Request the opaque lighting strategy (transparent stays Forward+).
Definition RenderControl.cpp:94
void compile()
Rebuild the executable pass list from current feature flags.
Definition RenderControl.cpp:241
Result< void > applySuggestedLightingPreset()
Apply suggestedLightingPreset(), then optional EVENGINE_LIGHTING_MODE override.
Definition RenderControl.cpp:134
bool isDeferredLightingAvailable() const
True when deferredLighting can be inserted for Hybrid. Requires an attached Graphics backend that imp...
Definition RenderControl.cpp:92
Result< void > applyLightingPreset(LightingPreset preset)
Apply a platform lighting preset (sets LightingMode; does not lock against later setLightingMode).
Definition RenderControl.cpp:118
std::string getPassName(int index) const
Return the compiled pass name at index, or an empty string.
Definition RenderControl.cpp:276
void setReflectionQuality(const std::string &quality)
Set the shared TAA/RTGI/SSR quality preset used by the automatic reflection chain.
Definition RenderControl.cpp:234
void invalidateHistory()
Discard temporal reflection history after a render-chain discontinuity.
Definition ScreenSpaceReflection.h:54
void setEnabled(bool enabled)
Enable/disable the pass. When disabled it emits transparent (0 hit).
Definition ScreenSpaceReflection.cpp:182
卡牌游戏 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
@ InvalidArgument
@ Unsupported