RenderStateManager.MultiSampleMask Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets a render state that enables use of a multisample buffer as an accumulation buffer.

Definition

Visual Basic .NET Public Property MultiSampleMask As Integer
C# public int MultiSampleMask { get; set; }
Managed C++ public: __property int get_MultiSampleMask();
public: __property void set_MultiSampleMask(int);
JScript .NET public function get MultiSampleMask() : int
public function set MultiSampleMask(int);

Property Value

System.Int32 . Integer value that represents the multisample mask to set or retrieve.

This property is read/write. 

Remarks

The default value is 0xFFFFFFFF.

This render state allows multipass rendering of geometry, in which each pass updates a subset of samples. The state has no effect when rendering to a single sample buffer.

Each bit in the MultiSampleMask, starting at the least significant bit (LSB), controls modification of one of the samples in a multisample render target. Thus, for an 8-sample render target, the low byte contains the eight write enables for each of the eight samples. This property enables use of a multisample buffer as an accumulation buffer. If there are 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.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.