Class GraphicsSerializerExtensions
Various extension method for serialization of GPU types having separate CPU serialized data format.
public static class GraphicsSerializerExtensions
- Inheritance
-
objectGraphicsSerializerExtensions
Methods
GetSerializationData(Buffer)
Gets the serialized data version of this Buffer.
public static BufferData GetSerializationData(this Buffer buffer)
Parameters
bufferBufferThe buffer.
Returns
GetSerializationData(Texture)
Gets the serialized data version of this Texture.
public static TextureSerializationData GetSerializationData(this Texture texture)
Parameters
textureTextureThe texture.
Returns
SetSerializationData(Buffer, BufferData)
Sets the serialized data version of this Buffer.
public static void SetSerializationData(this Buffer buffer, BufferData bufferData)
Parameters
bufferBufferThe buffer.
bufferDataBufferDataThe buffer data.
SetSerializationData(Texture, TextureSerializationData)
Sets the serialized data version of this Texture.
public static void SetSerializationData(this Texture texture, TextureSerializationData data)
Parameters
textureTextureThe texture.
dataTextureSerializationDataThe 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
bufferDataBufferDataThe 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
dataTextureSerializationDataThe data.
Returns
ToSerializableVersion(Image)
Creates a fake Texture that will have the given serialized data version.
public static Texture ToSerializableVersion(this Image image)
Parameters
imageImageThe image.