Class BarracudaTextureUtils
Deprecated. Use Tensor.ToRenderTexture
method instead
Namespace: Unity.Barracuda
Syntax
public class BarracudaTextureUtils : object
Methods
TensorToRenderTexture(Tensor, RenderTexture, Int32, Int32, Single, Single)
Copy Tensor data to RenderTexture
Declaration
public static void TensorToRenderTexture(Tensor x, RenderTexture target, int batch = 0, int fromChannel = 0, float scale = 1F, float bias = 0F)
Parameters
Type | Name | Description |
---|---|---|
Tensor | x | Tensor |
RenderTexture | target | target RenderTexture |
Int32 | batch | batch |
Int32 | fromChannel | from channel |
Single | scale | scale |
Single | bias | bias |
TensorToRenderTexture(Tensor, Int32, Int32, Single, Single)
Copy Tensor data to RenderTexture
Declaration
public static RenderTexture TensorToRenderTexture(Tensor x, int batch = 0, int fromChannel = 0, float scale = 1F, float bias = 0F)
Parameters
Type | Name | Description |
---|---|---|
Tensor | x | Tensor |
Int32 | batch | batch |
Int32 | fromChannel | from channel |
Single | scale | scale |
Single | bias | bias |
Returns
Type | Description |
---|---|
RenderTexture | RenderTexture created from Tensor data |