docs.unity.cn
    Show / Hide Table of Contents

    Method GetScratchpadAllocator

    GetScratchpadAllocator()

    Retrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.

    Declaration
    public ref ScratchpadAllocator GetScratchpadAllocator()
    Returns
    Type Description
    ScratchpadAllocator

    Returns reference to the ScratchpadAllocator for the running thread.

    GetScratchpadAllocator(Int32)

    Retrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.

    Declaration
    public ref ScratchpadAllocator GetScratchpadAllocator(int threadIndex)
    Parameters
    Type Name Description
    Int32 threadIndex

    Index of the running thread.

    Returns
    Type Description
    ScratchpadAllocator

    Returns reference to the ScratchpadAllocator for the running thread.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023