Share via


IDirect3DMobile::CheckDeviceMultiSampleType

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method is used to determine if a specified multisampling type is supported on a specified device.

Syntax

HRESULT CheckDeviceMultiSampleType(
  UINT Adapter,
  D3DMDEVTYPE DeviceType,
  D3DMFORMAT SurfaceFormat,
  BOOL Windowed,
  D3DMMULTISAMPLE_TYPE MultiSampleType
);

Parameters

  • Adapter
    [in] A value that indicates which device to provide information for. For possible values, see D3DMADAPTER Values.
  • DeviceType
    [in] A D3DMDEVTYPE enumeration value that specifies the type of device.
  • SurfaceFormat
    [in] A D3DMFORMAT enumeration value that specifies the pixel format to test the device for.
  • Windowed
    Not used.
  • MultiSampleType
    [in] A D3DMMULTISAMPLE_TYPE enumeration value that specifies the type of multisampling support to check for.

Return Value

This method returns D3DM_OK if the specified type of multisampling is supported and D3DMERR_NOTAVAILABLE if it is not supported.

This method may return one of the following error values if it fails:

  • D3DMERR_INVALIDCALL
  • D3DMERR_INVALIDDEVICE
  • E_OUTOFMEMORY

For more information, see D3DMERR Values.

Requirements

Header d3dm.h
Library D3dm.lib, D3dmguid.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IDirect3DMobile
D3DMADAPTER Values
D3DMDEVTYPE
D3DMFORMAT
D3DMMULTISAMPLE_TYPE