docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BarracudaTextureUtils

    Deprecated. Use Tensor.ToRenderTexture method instead

    Inheritance
    object
    BarracudaTextureUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Assembly: solution.dll
    Syntax
    [Obsolete("Use Tensor.ToRenderTexture method instead.", false)]
    public class BarracudaTextureUtils

    Methods

    TensorToRenderTexture(Tensor, int, int, float, float)

    Copy Tensor data to RenderTexture

    Declaration
    public static RenderTexture TensorToRenderTexture(Tensor x, int batch = 0, int fromChannel = 0, float scale = 1, float bias = 0)
    Parameters
    Type Name Description
    Tensor x

    Tensor

    int batch

    batch

    int fromChannel

    from channel

    float scale

    scale

    float bias

    bias

    Returns
    Type Description
    RenderTexture

    RenderTexture created from Tensor data

    TensorToRenderTexture(Tensor, RenderTexture, int, int, float, float)

    Copy Tensor data to RenderTexture

    Declaration
    public static void TensorToRenderTexture(Tensor x, RenderTexture target, int batch = 0, int fromChannel = 0, float scale = 1, float bias = 0)
    Parameters
    Type Name Description
    Tensor x

    Tensor

    RenderTexture target

    target RenderTexture

    int batch

    batch

    int fromChannel

    from channel

    float scale

    scale

    float bias

    bias

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)