GraphicsDevice.MultiSampleMask Property

Gets or sets a bitmask controlling modification of the samples in a multisample render target. The default value is -1 (0xffffffff).

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

public int MultiSampleMask { get; set; }

Property Value

A bitmask value controlling write enables for the samples. Each bit in this mask, starting at the least-significant bit, controls modification of one of the samples in a multisample render target. This render state has no effect when rendering to a single sample buffer.

This render state enables use of a multisample buffer as an accumulation buffer, doing multipass rendering of geometry where each pass updates a subset of samples.

Given n multisamples and k-enabled samples, the resulting intensity of the rendered image should be k/n. Each component RGB of every pixel is factored by k/n.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions