文档

Unity Engine

Unity Engine

AllocatorHelper(AllocatorHandle, bool, int)

Allocate the custom allocator from backingAllocator and register it.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
[ExcludeFromBurstCompatTesting("CreateAllocator is unburstable")]public AllocatorHelper(AllocatorManager.AllocatorHandle backingAllocator, bool isGlobal = false, int globalIndex = 0)

Parameters

backingAllocator

Allocator used to allocate backing storage.

isGlobal

Flag indicating if the allocator is a global allocator.

globalIndex

Index into the global function table of the allocator to be created.