Version: 2023.1

NativeContainerSupportsDeallocateOnJobCompletionAttribute

class in Unity.Collections.LowLevel.Unsafe

切换到手册

描述

Indicates that a native container can be automatically deallocated.

Apply this attribute to native container types that you want to automatically deallocate with DeallocateOnJobCompletionAttribute. The native container must contain two fields: One named m_Buffer (of a pointer type) and one named m_AllocatorLabel (of type Allocator). The job system uses the values of these two fields to automatically deallocate the native container on job completion. See Also: DeallocateOnJobCompletionAttribute

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961