Struct Buffer<T> | Data Flow Graph | 0.16.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Buffer<T>

    An array data type to be used inside of a DataInput<TDefinition, TType> or DataOutput<TDefinition, TType>.

    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 Buffer<T>
        where T : struct
    Type Parameters
    Name Description
    T

    Methods

    SizeRequest(Int32)

    The return value should be used with SetBufferSize<TDefinition, TType>(NodeHandle<TDefinition>, DataOutput<TDefinition, TType>, TType) to resize a buffer.

    Declaration
    public static Buffer<T> SizeRequest(int size)
    Parameters
    Type Name Description
    Int32 size
    Returns
    Type Description
    Buffer<T>

    ToNative(GraphValueResolver)

    Gives access to the actual underlying data via a NativeArray`1.

    Declaration
    public NativeArray<T> ToNative(GraphValueResolver resolver)
    Parameters
    Type Name Description
    GraphValueResolver resolver
    Returns
    Type Description
    NativeArray<T>

    ToNative(RenderContext)

    Gives access to the actual underlying data via a NativeArray`1.

    Declaration
    public NativeArray<T> ToNative(in RenderContext ctx)
    Parameters
    Type Name Description
    RenderContext ctx
    Returns
    Type Description
    NativeArray<T>
    In This Article
    • Methods
      • SizeRequest(Int32)
      • ToNative(GraphValueResolver)
      • ToNative(RenderContext)
    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