fix: 阴影光源错误绑定 FillLight + 截图 usage 警告 + nodiscard
- LightComponent 增加 castShadow 标志;灯收集排序键改为 castShadow 方向光 > 方向光 > 点光(此前稳定排序把收集序靠前的 FillLight 排到 lights[0],KeyLight 方向滑条自然不影响阴影) - TextureDesc 增加 extraUsage:HDRColor 声明 TRANSFER_SRC, 消除截图 copy 的 3 条 usage 不匹配运行时警告 - waitForFences nodiscard 返回值显式丢弃,消除编译警告
This commit is contained in:
@@ -260,7 +260,7 @@ namespace Engine::RG {
|
||||
}
|
||||
}
|
||||
}
|
||||
entry.usage = usage;
|
||||
entry.usage = usage | entry.desc.extraUsage;
|
||||
}
|
||||
|
||||
void RenderGraph::CullPasses()
|
||||
|
||||
Reference in New Issue
Block a user