SharedStatic<T>
A structure that allows to share mutable static data between C# and HPC#.
Read time 1 minuteLast updated 6 days ago
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#). |