Class BarracudaTextureUtils
Deprecated. Use Tensor.ToRenderTexture method instead
Inherited Members
Namespace: Unity.Barracuda
Assembly: Unity.Barracuda.dll
Syntax
[Obsolete("Use Tensor.ToRenderTexture method instead.", false)]
public class BarracudaTextureUtils
Methods
TensorToRenderTexture(Tensor, int, int, float, float)
Copy Tensor data to RenderTexture
Declaration
public static RenderTexture TensorToRenderTexture(Tensor x, int batch = 0, int fromChannel = 0, float scale = 1, float bias = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | x | Tensor |
| int | batch | batch |
| int | fromChannel | from channel |
| float | scale | scale |
| float | bias | bias |
Returns
| Type | Description |
|---|---|
| RenderTexture | RenderTexture created from Tensor data |
TensorToRenderTexture(Tensor, RenderTexture, int, int, float, float)
Copy Tensor data to RenderTexture
Declaration
public static void TensorToRenderTexture(Tensor x, RenderTexture target, int batch = 0, int fromChannel = 0, float scale = 1, float bias = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | x | Tensor |
| RenderTexture | target | target RenderTexture |
| int | batch | batch |
| int | fromChannel | from channel |
| float | scale | scale |
| float | bias | bias |