Class BarracudaTextureUtils | Barracuda | 0.5.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class BarracudaTextureUtils

    Inheritance
    Object
    BarracudaTextureUtils
    Namespace: Barracuda
    Syntax
    [Obsolete("Use Tensor.ToRenderTexture method instead.", false)]
    public class BarracudaTextureUtils

    Methods

    TensorToRenderTexture(Tensor, RenderTexture, Int32, Int32, Single, Single)

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

    TensorToRenderTexture(Tensor, Int32, Int32, Single, Single)

    Create a RenderTexture from a slice/batch of a tensor.

    Declaration
    public static RenderTexture TensorToRenderTexture(Tensor x, int batch = 0, int fromChannel = 0, float scale = 1F, float bias = 0F)
    Parameters
    Type Name Description
    Tensor x
    Int32 batch
    Int32 fromChannel
    Single scale
    Single bias
    Returns
    Type Description
    RenderTexture
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX