次の方法で共有


MultiSampleType Enumeration

Defines the levels of full-scene multisampling that the device can apply.

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

Syntax

public enum MultiSampleType

Members

  Member name Description
SixteenSamples Enables 16 levels of full-scene multisampling.
FifteenSamples Enables 15 levels of full-scene multisampling.
FourteenSamples Enables 14 levels of full-scene multisampling.
ThirteenSamples Enables 13 levels of full-scene multisampling.
TwelveSamples Enables 12 levels of full-scene multisampling.
ElevenSamples Enables 11 levels of full-scene multisampling.
TenSamples Enables 10 levels of full-scene multisampling.
NineSamples Enables 9 levels of full-scene multisampling.
EightSamples Enables 8 levels of full-scene multisampling.
SevenSamples Enables 7 levels of full-scene multisampling.
SixSamples Enables 6 levels of full-scene multisampling.
FiveSamples Enables 5 levels of full-scene multisampling.
FourSamples Enables 4 levels of full-scene multisampling.
ThreeSamples Enables 3 levels of full-scene multisampling.
TwoSamples Enables 2 levels of full-scene multisampling.
NonMaskable Enables the multisample quality value.
None Specifies no full-scene multisampling, and enables swap effects other than SwapEffect.Discard.

Remarks

When multisampling is enabled, all subsamples of a pixel are updated in one pass. However, when subsamples are used for other effects that involve multiple rendering passes, the application can specify that only some of them be affected by a given rendering pass. This latter approach enables simulation of motion blur, depth-of-field focus effects, reflection blur, and other effects.

In addition to enabling full-scene multisampling when a Reset occurs, there are render states that turn various multisampling aspects on and off at fine-grained levels. For more information, see RenderState.

Multisampling is valid only on a swap chain that is created or reset with SwapEffect.Discard.

The multisampling antialiasing value can be set with the parameters or sub-parameters in the following methods.

Module Parameters Sub-parameters
CheckDeviceMultiSampleType multiSampleType, qualityLevels None
GraphicsDevice presentationParameters MultiSampleType, MultiSampleQuality
Reset presentationParameters MultiSampleType, MultiSampleQuality

See Also

Reference

GraphicsAdapter.CheckDeviceMultiSampleType Method
PresentationParameters.MultiSampleQuality Property
PresentationParameters.MultiSampleType Property
DepthStencilBuffer.MultiSampleType Property
SwapEffect Enumeration
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista