文档

Unity Engine

Download Unity

Unity Engine

GetScratchpadAllocator

Retrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

GetScratchpadAllocator()

Retrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.
public ref ScratchpadAllocator GetScratchpadAllocator()

Returns

Type

Description

ScratchpadAllocatorReturns reference to the ScratchpadAllocator for the running thread.

GetScratchpadAllocator(int)

Retrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.
public ref ScratchpadAllocator GetScratchpadAllocator(int threadIndex)

Parameters

threadIndex

Index of the running thread.

Returns

Type

Description

ScratchpadAllocatorReturns reference to the ScratchpadAllocator for the running thread.