docs.unity3d.com
    目次を表示する/隠す

    Struct SharedStatic<T>

    A structure that allows to share mutable static data between C# and HPC#.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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#).

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)