UninitializedMemory
Leaves NativeArray<T> memory uninitialized.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
UninitializedMemory = 0
Remarks
Uninitialized memory can improve performance, but means that the contents of the NativeArray elements are undefined. In performance sensitive code you might use NativeArrayOptions.Uninitialized if you want to write to the entire array right after creating it without reading any of the elements first.