TextureSerializer Class
Namespace: Stride.Graphics.DataAssembly: Stride.Graphics.dll
Serializer for Texture.
Derived from TextureSerializer:
public class TextureSerializer : DataSerializer<Texture>
Name | Description | |
---|---|---|
Methods | ||
PreSerialize(ref Texture, ArchiveMode, SerializationStream) | Performs the first step of serialization or deserialization. |
|
Serialize(ref Texture, ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
PreSerialize(ref Texture, ArchiveMode, SerializationStream)
Performs the first step of serialization or deserialization.
public override void PreSerialize(ref Texture texture, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<Stride.Graphics.Texture>.PreSerialize(Stride.Graphics.Texture, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)
Remarks
Typically, it will instantiate the object if [null], and if it's a collection clear it.
Serialize(ref Texture, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref Texture texture, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
Texture | texture | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<Stride.Graphics.Texture>.Serialize(Stride.Graphics.Texture, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)