次の方法で共有


GraphicsAdapter.CheckDeviceMultiSampleType Method (DeviceType, SurfaceFormat, Boolean, MultiSampleType)

Verifies whether a multisample technique is available on a specified device.

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

Syntax

public bool CheckDeviceMultiSampleType (
         DeviceType deviceType,
         SurfaceFormat surfaceFormat,
         bool isFullScreen,
         MultiSampleType sampleType
)

Parameters

  • deviceType
    The type of device to check.
  • surfaceFormat
    The format of the surface to be multisampled.
  • isFullScreen
    [MarshalAsAttribute(U1)] true to inquire about windowed multisampling; false to inquire about full-screen multisampling.
  • sampleType
    The multisampling technique to test.

Return Value

true if the technique is available; false otherwise.

Exceptions

Exception type Condition
DeviceNotSupportedException (Xbox 360) Hardware is the only device type supported on this platform.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista