docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetBroadcastChannels

    SetBroadcastChannels(bool)

    Sets the default behaviour when the output texture has more channels than the input tensor.

    When broadcastChannels is true, Sentis broadcasts the tensor values to additional channels in the render texture. For example, a tensor with a single channel R maps to (R, R, R, R) if the number of channels is 4.

    When broadcastChannels is false, Sentis applies a (0, 0, 0, 1) color mask to additional channels in the render texture. For example, a tensor with a single channel R becomes (R, 0, 0, 1) if the number of channels is 4.

    Declaration
    public TextureTransform SetBroadcastChannels(bool broadcastChannels)
    Parameters
    Type Name Description
    bool broadcastChannels

    Whether to broadcast the input channels across output channels.

    Returns
    Type Description
    TextureTransform

    TextureTransform that you can use to chain other methods.

    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)