SetDataOptions Enumeration (Microsoft.Xna.Framework.Graphics)

Defines how vertex or index buffer data will be flushed during a SetData operation.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public enum SetDataOptions

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The SetDataOptions type exposes the following members.

  Platforms Name Description
Discard The SetData will discard the entire buffer. A pointer to a new memory area is returned and rendering from the previous area do not stall. 
NoOverwrite The SetData operation will not overwrite existing data. This allows the driver to return immediately from a SetData operation and continue rendering. 
None The SetData can overwrite the portions of existing data. 
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop