fix: 阴影采样器 CompareOp 反转(诊断残留 eGreater)+ 移除截图调试设施

根因:shadow sampler 停留在诊断期的 eGreater——比较语义全反,
全场 shade 被压到 0.3 变暗,唯独真影区 lit=1 反而全亮,
即"影子比环境亮、像光源"的现象。修回 eLess 后影子正常。

顺带清理:第 60 帧截图管线(HDRColor/ShadowMap0 → BMP)、
CPU 投影诊断日志、GetCaptureTarget 及 TRANSFER_SRC extraUsage。
This commit is contained in:
2026-09-24 12:42:24 +08:00
parent d3c3d0cdd9
commit 708d714459
6 changed files with 5 additions and 194 deletions
@@ -212,13 +212,6 @@ namespace Engine::RG {
// 注意:物理镜像按槽位各一份,槽位变化/重编译后必须重新获取。
vk::ImageView GetPhysicalView(TextureHandle h, u32 frameSlot) const;
// 调试/截图:取物理 image + 静息布局(帧尾 barrier 恢复用)。
// imported 资源返回 false(无物理实例)
bool GetCaptureTarget(TextureHandle h, u32 frameSlot,
vk::Image& outImage, vk::Extent2D& outExtent,
vk::Format& outFormat,
vk::ImageLayout& outResting) const;
// 帧历史槽位 = 上一帧使用的槽位:(slot - 1 + F) mod F
u32 HistorySlot(u32 frameSlot) const {
return (frameSlot + m_FramesInFlight - 1) % m_FramesInFlight;
@@ -101,7 +101,6 @@ namespace Engine {
void BuildGraph(); // 声明 RG 资源 + 注册 pass 对象
void HandleResize();
void ReadGpuTimes(u32 frameSlot);
void CaptureFrame(); // 调试截图(一次性,写 capture.bmp)
Window& m_Window;
@@ -155,11 +154,6 @@ namespace Engine {
vk::Extent2D m_Extent{};
u32 m_CurrentFrame = 0;
// 调试截图(一次性):第 60 帧把 TAAColor(HDR)落成 capture.bmp
u32 m_FrameCounter = 0;
bool m_Captured = false;
MemoryAllocator::Allocation m_CaptureAlloc{};
};
} // namespace Engine