Class GraphicsSerializerExtensions
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
BufferThe buffer.
Returns
GetSerializationData(Texture)
Gets the serialized data version of this Texture.
public static TextureSerializationData GetSerializationData(this Texture texture)
Parameters
texture
TextureThe texture.
Returns
SetSerializationData(Buffer, BufferData)
Sets the serialized data version of this Buffer.
public static void SetSerializationData(this Buffer buffer, BufferData bufferData)
Parameters
buffer
BufferThe buffer.
bufferData
BufferDataThe buffer data.
SetSerializationData(Texture, TextureSerializationData)
Sets the serialized data version of this Texture.
public static void SetSerializationData(this Texture texture, TextureSerializationData data)
Parameters
texture
TextureThe texture.
data
TextureSerializationDataThe data.
SetSerializationData(Texture, Image)
Sets the serialized data version of this Texture.
public static void SetSerializationData(this Texture texture, Image image)
Parameters
ToSerializableVersion(BufferData)
Creates a fake Buffer that will have the given serialized data version.
public static Buffer ToSerializableVersion(this BufferData bufferData)
Parameters
bufferData
BufferDataThe buffer data.
Returns
ToSerializableVersion(TextureSerializationData)
Creates a fake Texture that will have the given serialized data version.
public static Texture ToSerializableVersion(this TextureSerializationData data)
Parameters
data
TextureSerializationDataThe data.
Returns
ToSerializableVersion(Image)
Creates a fake Texture that will have the given serialized data version.
public static Texture ToSerializableVersion(this Image image)
Parameters
image
ImageThe image.