Share via


PresentationParameters.BackBufferCount Property

Gets or sets a value specifying how many back buffers to create.

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

Syntax

public int BackBufferCount { get; set; }

Property Value

The number of back buffers to create. Can be 0, 1, 2, or 3. 0 is considered 1.

Remarks

When an instance of this class is returned from a method (for example, the GraphicsDevice constructor), BackBufferCount is set to the number of back buffers that can be created. For that reason, an application can call the method twice and expect the second call to successfully create back buffers.

SwapEffect.Copy requires exactly one back buffer.

See Also

Reference

PresentationParameters Class
PresentationParameters Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista