Struct SharedStatic<T>
A structure that allows to share mutable static data between C# and HPC#.
Namespace: Unity.Burst
Assembly: solution.dll
Syntax
public readonly struct SharedStatic<T> where T : struct
Type Parameters
Name | Description |
---|---|
T | Type of the data to share (must not contain any reference types) |
Properties
Name | Description |
---|---|
Data | Get a writable reference to the shared data. |
Unsafe |
Get a direct unsafe pointer to the shared data. |
Methods
Name | Description |
---|---|
Get |
Creates a shared static data for the specified context (reflection based, only usable from C#, but not from HPC#) |
Get |
Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#) |
Get |
Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
Get |
Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
Get |
Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
Get |
Creates a shared static data for the specified context (usable from both C# and HPC#) |
Get |
Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#) |