Class DictionaryPool<TKey, TValue>
Dictionary Pool.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class DictionaryPool<TKey, TValue>
Type Parameters
Name | Description |
---|---|
TKey | Key type. |
TValue | Value type. |
Methods
Get()
Get a new Dictionary
Declaration
public static Dictionary<TKey, TValue> Get()
Returns
Type | Description |
---|---|
Dictionary<TKey, TValue> | A new Dictionary |
Get(out Dictionary<TKey, TValue>)
Get a new dictionary PooledObject.
Declaration
public static ObjectPool<Dictionary<TKey, TValue>>.PooledObject Get(out Dictionary<TKey, TValue> value)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | value | Output typed Dictionary. |
Returns
Type | Description |
---|---|
ObjectPool<Dictionary<TKey, TValue>>.PooledObject | A new Dictionary PooledObject. |
Release(Dictionary<TKey, TValue>)
Release an object to the pool.
Declaration
public static void Release(Dictionary<TKey, TValue> toRelease)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | toRelease | Dictionary to release. |