feat: RenderGraph 帧历史资源(ReadHistory)+ TemporalDiff 验证 pass
- PassBuilder::ReadHistory:读上一帧槽位 ((slot-1+F) mod F) 的物理镜像, TAA/运动模糊等时域效果的前置能力,RG 最后一个已知边界补齐 - 历史读不建拓扑边(跨帧依赖由同队列提交序保证)、不入本帧状态链、 不改生命周期;剔除照常参与(生产者存活判定) - 历史 barrier:首帧走 first(old=Undefined),之后走 steady 且 src=ALL_COMMANDS|MEMORY_WRITE 显式闭合跨帧可用性+可见性; 有历史读的资源,常规 entry steady 的 src 同样升级(历史读打破了 同槽位 fence 全等保前提) - TemporalDiff 调试 pass:|上一帧−当前帧|×增益,静止=黑/运动边缘发光 即链路正确;Tonemap binding2 经 push 开关切调试视图 - 编译零错误、validation 零警告、8 秒冒烟通过(9 pass 全活跃)
This commit is contained in:
@@ -166,6 +166,13 @@ protected:
|
||||
renderer.SetBloomStrength(strength);
|
||||
}
|
||||
|
||||
// 调试视图:帧历史差异(静止=黑,运动边缘发光=链路正确)
|
||||
bool temporalDiff = renderer.GetShowTemporalDiff();
|
||||
if (ImGui::Checkbox("Temporal Diff View", &temporalDiff))
|
||||
{
|
||||
renderer.SetShowTemporalDiff(temporalDiff);
|
||||
}
|
||||
|
||||
// Pass 级 GPU 耗时(RG timestamp)
|
||||
ImGui::Separator();
|
||||
ImGui::Text("GPU Timings");
|
||||
|
||||
Reference in New Issue
Block a user