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