Align URP render graph frame data scope

This commit is contained in:
2026-04-26 20:51:16 +08:00
parent ee05558f86
commit db2d3eb414
13 changed files with 918 additions and 73 deletions

View File

@@ -56,6 +56,20 @@ namespace XCEngine.Rendering
return Create<T>();
}
internal void Set<T>(
T item)
where T : ContextItem
{
ThrowIfDisposed();
if (item == null)
{
m_items.Remove(typeof(T));
return;
}
m_items[typeof(T)] = item;
}
public void Dispose()
{
if (m_disposed)