Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    TextureSerializationData Class

    Namespace: Stride.Graphics.Data
    Assembly: Stride.Graphics.dll

    Texture serialization data

    System.Object → TextureSerializationData
    Derived from TextureSerializationData:

    public sealed class TextureSerializationData
    Name Description
    Constructors
    TextureSerializationData(Image)

    Initializes a new instance of the TextureSerializationData class.

    TextureSerializationData(Image, Boolean, ContentStorageHeader)

    Initializes a new instance of the TextureSerializationData class.

    Fields
    EnableStreaming

    Enables/disables texture streaming.

    Image

    The texture image.

    StorageHeader

    The raw bytes with a content storage header description.

    Methods
    Write(SerializationStream)

    Saves this instance to a stream.

    | Improve this Doc View Source

    Constructors


    TextureSerializationData(Image)

    Initializes a new instance of the TextureSerializationData class.

    public TextureSerializationData(Image image)
    Parameters
    Type Name Description
    Image image

    The image.


    TextureSerializationData(Image, Boolean, ContentStorageHeader)

    Initializes a new instance of the TextureSerializationData class.

    public TextureSerializationData(Image image, bool enableStreaming, ContentStorageHeader storageHeader)
    Parameters
    Type Name Description
    Image image

    The image.

    System.Boolean enableStreaming

    Enables/disables texture streaming

    ContentStorageHeader storageHeader

    Streaming storage data

    | Improve this Doc View Source

    Fields


    EnableStreaming

    Enables/disables texture streaming.

    public bool EnableStreaming
    Field Value
    Type Description
    System.Boolean

    Image

    The texture image.

    public Image Image
    Field Value
    Type Description
    Image

    StorageHeader

    The raw bytes with a content storage header description.

    public ContentStorageHeader StorageHeader
    Field Value
    Type Description
    ContentStorageHeader
    | Improve this Doc View Source

    Methods


    Write(SerializationStream)

    Saves this instance to a stream.

    public void Write(SerializationStream stream)
    Parameters
    Type Name Description
    SerializationStream stream

    The destination stream.


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    GraphicsSerializerExtensions.ToSerializableVersion(TextureSerializationData)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation