文档

Unity Engine

Unity Engine

GetTempMemoryHandle()

Gets an AtomicSafetyHandle for the temporary memory allocations in a temporary memory scope.
阅读时间1 分钟最后更新于 2 个月前

Definition

public static AtomicSafetyHandle GetTempMemoryHandle()

Returns

Type

Description

AtomicSafetyHandleThe AtomicSafetyHandle for temporary memory allocations in the current scope.

Remarks

The temporary safety handle is invalidated when the temporary memory is freed. This happens when the active temporary memory scope exists, which happens at least once per frame. Don't manually call AtomicSafetyHandle.Release on this AtomicSafetyHandle.