SharedStatic<T>
A structure that allows to share mutable static data between C# and HPC#.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Struct
- Namespace: Unity.Burst
- Assembly: UnityEngine.BurstModule
public readonly struct SharedStatic<T> where T : struct
Properties
Property | Description |
|---|---|
| Data | Get a writable reference to the shared data. |
| UnsafeDataPointer | Get a direct unsafe pointer to the shared data. |
Static Methods
Method | Description |
|---|---|
| GetOrCreate | Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#) |
| GetOrCreatePartiallyUnsafeWithHashCode | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
| GetOrCreatePartiallyUnsafeWithSubHashCode | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
| GetOrCreateUnsafe | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |