Struct SharedStatic<T>
A structure that allows to share mutable static data between C# and HPC#.
Inherited Members
Namespace: Unity.Burst
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. |
UnsafeDataPointer | Get a direct unsafe pointer to the shared data. |
Methods
Name | Description |
---|---|
GetOrCreate(Type, Type, UInt32) | Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#) |
GetOrCreate(Type, UInt32) | Creates a shared static data for the specified context (reflection based, only usable from C#, but not from HPC#) |
GetOrCreate<TContext>(UInt32) | Creates a shared static data for the specified context (usable from both C# and HPC#) |
GetOrCreate<TContext, TSubContext>(UInt32) | Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#) |
GetOrCreatePartiallyUnsafeWithHashCode<TSubContext>(UInt32, Int64) | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
GetOrCreatePartiallyUnsafeWithSubHashCode<TContext>(UInt32, Int64) | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
GetOrCreateUnsafe(UInt32, Int64, Int64) | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |