docs.unity3d.com
    Show / Hide Table of Contents

    Class BarracudaTextureUtils

    Deprecated. Use Tensor.ToRenderTexture method instead

    Inheritance
    Object
    BarracudaTextureUtils
    Namespace: Unity.Barracuda
    Syntax
    public class BarracudaTextureUtils : object

    Methods

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

    Copy Tensor data to RenderTexture

    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

    Tensor

    RenderTexture target

    target RenderTexture

    Int32 batch

    batch

    Int32 fromChannel

    from channel

    Single scale

    scale

    Single bias

    bias

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

    Copy Tensor data to RenderTexture

    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

    Tensor

    Int32 batch

    batch

    Int32 fromChannel

    from channel

    Single scale

    scale

    Single bias

    bias

    Returns
    Type Description
    RenderTexture

    RenderTexture created from Tensor data

    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