RenderStateManager.MultiSampleMask Property |
Language: |
Retrieves or sets a render state that enables use of a multisample buffer as an accumulation buffer.
Visual Basic Public Property MultiSampleMask As Integer C# public int MultiSampleMask { get; set; } C++ public:
property int MultiSampleMask {
int get();
void set(int value);
}JScript public function get MultiSampleMask() : int
public function set MultiSampleMask(int);
System.Int32
This property is read/write.
Integer value that represents the multisample mask to set or retrieve.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.