docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureTensorData

    Inheritance
    Object
    UniqueResourceId
    TextureTensorData
    Inherited Members
    UniqueResourceId.uniqueId
    UniqueResourceId.GetUniqueId()
    Namespace: Unity.Barracuda
    Syntax
    public class TextureTensorData : UniqueResourceId, ITensorData, IDisposable, ITensorDataStatistics, IUniqueResource

    Constructors

    TextureTensorData(TensorShape, String, Boolean)

    Declaration
    public TextureTensorData(TensorShape shape, string buffername, bool clearOnInit = true)
    Parameters
    Type Name Description
    TensorShape shape
    String buffername
    Boolean clearOnInit

    Fields

    MaxTextureSize

    Declaration
    public static int MaxTextureSize
    Field Value
    Type Description
    Int32

    name

    Declaration
    public string name
    Field Value
    Type Description
    String

    Properties

    bufferAsTexture

    Declaration
    public RenderTexture bufferAsTexture { get; }
    Property Value
    Type Description
    RenderTexture

    dataType

    Returns the type of the elements this tensorData can contain.

    Declaration
    public virtual DataType dataType { get; }
    Property Value
    Type Description
    DataType
    Implements
    ITensorDataStatistics.dataType

    inUse

    Declaration
    public virtual bool inUse { get; }
    Property Value
    Type Description
    Boolean

    isGPUMem

    Declaration
    public virtual bool isGPUMem { get; }
    Property Value
    Type Description
    Boolean

    maxCapacity

    Declaration
    public virtual int maxCapacity { get; }
    Property Value
    Type Description
    Int32
    Implements
    ITensorDataStatistics.maxCapacity

    tensorBatchTilled

    Declaration
    public bool tensorBatchTilled { get; }
    Property Value
    Type Description
    Boolean

    tensorChannelTilled

    Declaration
    public bool tensorChannelTilled { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()

    Download(TensorShape)

    Declaration
    public virtual float[] Download(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape
    Returns
    Type Description
    Single[]
    Implements
    ITensorData.Download(TensorShape)

    Finalize()

    Declaration
    protected void Finalize()

    Reserve(Int32)

    Declaration
    public virtual void Reserve(int count)
    Parameters
    Type Name Description
    Int32 count
    Implements
    ITensorData.Reserve(Int32)

    ScheduleAsyncDownload(Int32)

    Declaration
    public virtual bool ScheduleAsyncDownload(int count)
    Parameters
    Type Name Description
    Int32 count
    Returns
    Type Description
    Boolean
    Implements
    ITensorData.ScheduleAsyncDownload(Int32)

    SharedAccess(out Int32)

    Declaration
    public virtual BarracudaArray SharedAccess(out int offset)
    Parameters
    Type Name Description
    Int32 offset
    Returns
    Type Description
    BarracudaArray
    Implements
    ITensorData.SharedAccess(out Int32)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Upload(Single[], TensorShape, Int32)

    Declaration
    public virtual void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
    Parameters
    Type Name Description
    Single[] data
    TensorShape shape
    Int32 managedBufferStartIndex
    Implements
    ITensorData.Upload(Single[], TensorShape, Int32)
    Back to top
    Terms of use
    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