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 |
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 |
TextureTransform | transform | The optional settings for the conversion. Refer to TextureTransform for more information. |