TextureSerializationData Class
Namespace: Stride.Graphics.DataAssembly: 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. |
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 |
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 |
Methods
Write(SerializationStream)
Saves this instance to a stream.
public void Write(SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
SerializationStream | stream | The destination stream. |