docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RenderToScreen

    RenderToScreen(TensorFloat, TextureTransform)

    Write the float data in a tensor to the frame buffer. Sentis only writes batch == 0 to the frame buffer.

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

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

    The input tensor.

    TextureTransform transform

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

    RenderToScreen(CommandBuffer, TensorFloat, TextureTransform)

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

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

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

    The CommandBuffer buffer to append graphics command to.

    TensorFloat tensor

    The input tensor.

    TextureTransform transform

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

    RenderToScreen(CommandBuffer, TensorFloat, RenderTargetIdentifier, TextureTransform)

    Appends the write the float data in a tensor to the render target identifier in a CommandBuffer. Sentis only writes batch == 0 to the frame buffer.

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

    Declaration
    public static void RenderToScreen(this CommandBuffer cb, TensorFloat tensor, RenderTargetIdentifier rte, TextureTransform transform = default)
    Parameters
    Type Name Description
    CommandBuffer cb

    The CommandBuffer buffer to append graphics command to.

    TensorFloat tensor

    The input tensor.

    RenderTargetIdentifier rte

    The render target identifier to write to.

    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)