Table of Contents

Class GraphicsSerializerExtensions

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

Various extension method for serialization of GPU types having separate CPU serialized data format.

public static class GraphicsSerializerExtensions
Inheritance
GraphicsSerializerExtensions

Methods

GetSerializationData(Buffer)

Gets the serialized data version of this Buffer.

public static BufferData GetSerializationData(this Buffer buffer)

Parameters

buffer Buffer

The buffer.

Returns

BufferData

GetSerializationData(Texture)

Gets the serialized data version of this Texture.

public static TextureSerializationData GetSerializationData(this Texture texture)

Parameters

texture Texture

The texture.

Returns

TextureSerializationData

SetSerializationData(Buffer, BufferData)

Sets the serialized data version of this Buffer.

public static void SetSerializationData(this Buffer buffer, BufferData bufferData)

Parameters

buffer Buffer

The buffer.

bufferData BufferData

The buffer data.

SetSerializationData(Texture, TextureSerializationData)

Sets the serialized data version of this Texture.

public static void SetSerializationData(this Texture texture, TextureSerializationData data)

Parameters

texture Texture

The texture.

data TextureSerializationData

The data.

SetSerializationData(Texture, Image)

Sets the serialized data version of this Texture.

public static void SetSerializationData(this Texture texture, Image image)

Parameters

texture Texture

The texture.

image Image

The image.

ToSerializableVersion(BufferData)

Creates a fake Buffer that will have the given serialized data version.

public static Buffer ToSerializableVersion(this BufferData bufferData)

Parameters

bufferData BufferData

The buffer data.

Returns

Buffer

ToSerializableVersion(TextureSerializationData)

Creates a fake Texture that will have the given serialized data version.

public static Texture ToSerializableVersion(this TextureSerializationData data)

Parameters

data TextureSerializationData

The data.

Returns

Texture

ToSerializableVersion(Image)

Creates a fake Texture that will have the given serialized data version.

public static Texture ToSerializableVersion(this Image image)

Parameters

image Image

The image.

Returns

Texture