Share via


SetDataOptions Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Describes whether existing vertex or index buffer data will be overwritten or discarded during a SetData operation.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

Syntax

'Declaration
Public Enumeration SetDataOptions
public enum SetDataOptions

Members

Member name Description
None Portions of existing data in the buffer may be overwritten during this operation.
Discard The SetData operation will discard the entire buffer. A pointer to a new memory area is returned so that the direct memory access (DMA) and rendering from the previous area do not stall.
NoOverwrite The SetData operation will not overwrite existing data in the vertex and index buffers. Specifying this option allows the driver to return immediately from a SetData operation and continue rendering.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.