Class HashSetPool<T>
HashSet Pool.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class HashSetPool<T>
Type Parameters
Name | Description |
---|---|
T | Type of the objects in the pooled hashsets. |
Methods
Get()
Get a new HashSet
Declaration
public static HashSet<T> Get()
Returns
Type | Description |
---|---|
Hash |
A new HashSet |
Get(out HashSet<T>)
Get a new list PooledObject.
Declaration
public static ObjectPool<HashSet<T>>.PooledObject Get(out HashSet<T> value)
Parameters
Type | Name | Description |
---|---|---|
Hash |
value | Output typed HashSet. |
Returns
Type | Description |
---|---|
Object |
A new HashSet PooledObject. |
Release(HashSet<T>)
Release an object to the pool.
Declaration
public static void Release(HashSet<T> toRelease)
Parameters
Type | Name | Description |
---|---|---|
Hash |
toRelease | hashSet to release. |