Align URP render graph frame data scope
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user