GraphicsAdapter.CheckDeviceMultiSampleType Method (DeviceType, SurfaceFormat, Boolean, MultiSampleType, Int32)
Verifies whether a multisample technique is available on a specified device, optionally returning the number of quality stops available for the specified technique.
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,
out int qualityLevels
)
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. - qualityLevels
[OutAttribute] Number of quality stops available for a given multisample type; can be null if it is not necessary to return the values.
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