ドキュメント

Unity Engine

Download Unity

Unity Engine

Scratchpad

A scratch pad that contains multiple scratch pad allocators. User can can get a scratch pad allocator from the pad corresponding to its thread index. It automatically invalidates all allocations made from it, when "rewound" by the user.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Struct
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
[BurstCompile]public struct Scratchpad

Constructors

Methods

Method

Description

DisposeDispose the Scratchpad. This must be called to unregister and free the ScratchpadAllocators this Scratchpad contains.
GetScratchpadAllocatorRetrieve the ScratchpadAllocator from the Scratchpad with index corresponding to the running thread index.
InitializeInitialize a Scratchpad.
RewindRewind the Scratchpad; rewinds all ScratchpadAllocator invalidate all allocations made from it, and potentially also free memory blocks it has allocated from the system.