Struct GraphValueResolver | Data Flow Graph | 0.16.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct GraphValueResolver

    A graph value resolver can resolve the state of an output port pointed to by a GraphValue<T>. It can be burst compiled, used concurrently on a job or on the main thread, so long as the dependencies are resolved.

    API on this object is a subset of what is available on RenderContext

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.DataFlowGraph
    Syntax
    public struct GraphValueResolver

    Methods

    Resolve<T>(GraphValue<T>)

    Returns the contents of the output port the graph value was originally specified to point to.

    Declaration
    public T Resolve<T>(GraphValue<T> handle)
        where T : struct
    Parameters
    Type Name Description
    GraphValue<T> handle
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    ObjectDisposedException

    Thrown if either the graph value or the pointed-to node is no longer valid.

    See Also
    CreateGraphValue<T, TDefinition>(NodeHandle<TDefinition>, DataOutput<TDefinition, T>)
    RenderContext

    Resolve<T>(GraphValue<Buffer<T>>)

    Returns the NativeArray representation of the buffer output port the graph value was originally specified to point to.

    Declaration
    public NativeArray<T> Resolve<T>(GraphValue<Buffer<T>> handle)
        where T : struct
    Parameters
    Type Name Description
    GraphValue<Buffer<T>> handle
    Returns
    Type Description
    NativeArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    This is a convenience method for Resolve<T>(GraphValue<T>) for directly accessing the NativeArray representation of a DataOutput<TDefinition, TType> of type Buffer<T>

    In This Article
    • Methods
      • Resolve<T>(GraphValue<T>)
      • Resolve<T>(GraphValue<Buffer<T>>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023