docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RenderToTexture

    RenderToTexture(TensorFloat, RenderTexture, TextureTransform)

    Write the float data in a tensor to a render texture. Sentis only writes batch == 0 to the render texture.

    If the width and height of the tensor don't match the width and height of the render texture, Sentis applies linear resampling.

    Declaration
    public static void RenderToTexture(TensorFloat tensor, RenderTexture renderTexture, TextureTransform transform = default)
    Parameters
    Type Name Description
    TensorFloat tensor

    The input tensor.

    RenderTexture renderTexture

    The render texture to write to. If the value is null, Sentis blits the tensor data to the screen.

    TextureTransform transform

    The optional settings for the conversion. Refer to TextureTransform for more information.

    RenderToTexture(CommandBuffer, TensorFloat, RenderTexture, TextureTransform)

    Appends the write the float data in a tensor to a render texture in a CommandBuffer. Sentis only writes batch == 0 to the render texture.

    If the width and height of the tensor don't match the width and height of the render texture, Sentis applies linear resampling.

    Declaration
    public static void RenderToTexture(this CommandBuffer cb, TensorFloat tensor, RenderTexture renderTexture, TextureTransform transform = default)
    Parameters
    Type Name Description
    CommandBuffer cb

    The CommandBuffer buffer to append graphics command to.

    TensorFloat tensor

    The input tensor.

    RenderTexture renderTexture

    The render texture to write to. If the value is null, Sentis blits the tensor data to the screen.

    TextureTransform transform

    The optional settings for the conversion. Refer to TextureTransform for more information.

    In This Article
    Back to top
    Copyright © 2024 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)