Class HashSetPool<T> | Core RP Library | 7.1.8
docs.unity3d.com
    Show / Hide Table of Contents

    Class HashSetPool<T>

    HashSet Pool.

    Inheritance
    Object
    HashSetPool<T>
    Namespace: UnityEngine.Rendering
    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
    HashSet<T>

    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
    HashSet<T> value

    Output typed HashSet.

    Returns
    Type Description
    ObjectPool.PooledObject<>

    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
    HashSet<T> toRelease

    hashSet to release.

    In This Article
    • Methods
      • Get()
      • Get(out HashSet<T>)
      • Release(HashSet<T>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023