Class BarracudaTextureUtils | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class BarracudaTextureUtils

    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
    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 © 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