GraphicsAdapter.QueryRenderTargetFormat Method

Queries the adapter for support for the requested render target format.

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

Syntax

public bool QueryRenderTargetFormat (
         GraphicsProfile graphicsProfile,
         SurfaceFormat format,
         DepthFormat depthFormat,
         int multiSampleCount,
         out SurfaceFormat selectedFormat,
         out DepthFormat selectedDepthFormat,
         out int selectedMultiSampleCount
)

Parameters

  • graphicsProfile
    The graphics profile.
  • format
    The requested surface data format.
  • depthFormat
    The requested depth buffer format.
  • multiSampleCount
    The requested number of multisampling locations.
  • selectedFormat
    [OutAttribute] The best format the adapter supports for the requested surface data format.
  • selectedDepthFormat
    [OutAttribute] The best format the adapter supports for the requested depth data format.
  • selectedMultiSampleCount
    [OutAttribute] The best format the adapter supports for the requested number of multisampling locations.

Return Value

True if the adapter supports the requested format; false otherwise.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7