docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureConverter

    Provides methods for converting between textures and tensors.

    Inheritance
    object
    TextureConverter
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    public static class TextureConverter

    Methods

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

    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.

    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.

    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.

    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.

    ToTensor(CommandBuffer, RenderTargetIdentifier, TensorFloat, TextureTransform)

    Appends the conversion of a RenderTargetIdentifier to a TensorFloatto a CommandBuffer. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(CommandBuffer, RenderTargetIdentifier, TextureTransform)

    Appends the conversion of a RenderTargetIdentifier to a TensorFloatto a CommandBuffer. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(CommandBuffer, Texture, int, int, int)

    Appends the conversion of a texture to a TensorFloatto a CommandBuffer`. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(CommandBuffer, Texture, TensorFloat, TextureTransform)

    Appends the conversion of a texture to a TensorFloatto a CommandBuffer. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(CommandBuffer, Texture, TextureTransform)

    Appends the conversion of a texture to a TensorFloatto a CommandBuffer. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(Texture, int, int, int)

    Converts a texture to a TensorFloat. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(Texture, TensorFloat, TextureTransform)

    Converts a texture to a TensorFloat. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTensor(Texture, TextureTransform)

    Converts a texture to a TensorFloat. The number of channels of the output tensor can be at most the number of channels in the input texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTexture(TensorFloat, int, int, int, bool)

    Converts the data in a tensor to a render texture. Sentis only writes batch == 0 to the render texture.

    If the width and height of the render texture don't match the width and height of the tensor, Sentis applies linear resampling.

    ToTexture(TensorFloat, TextureTransform)

    Converts the data in a tensor to a render texture. Sentis only writes batch == 0 to the render texture.

    If the width and height of the output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    ToTexture(CommandBuffer, TensorFloat, int, int, int, bool)

    Appends the convertion of the data in a tensor to a render texture to a CommandBuffer. Sentis only writes batch == 0 to the render texture.

    If the width and height of the render texture don't match the width and height of the tensor, Sentis applies linear resampling.

    ToTexture(CommandBuffer, TensorFloat, TextureTransform)

    Appends the conversion of the 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 output tensor don't match the width and height of the texture, Sentis applies linear resampling.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)