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