GraphicsAdapter.QueryRenderTargetFormat Method

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

Syntax

'Declaration
Public Function QueryRenderTargetFormat ( _
         graphicsProfile As GraphicsProfile, _
         format As SurfaceFormat, _
         depthFormat As DepthFormat, _
         multiSampleCount As Integer, _
         out selectedFormat As SurfaceFormat, _
         out selectedDepthFormat As DepthFormat, _
         out selectedMultiSampleCount As Integer _
) As Boolean 
public bool QueryRenderTargetFormat (
         GraphicsProfile graphicsProfile,
         SurfaceFormat format,
         DepthFormat depthFormat,
         int multiSampleCount,
         out SurfaceFormat selectedFormat,
         out DepthFormat selectedDepthFormat,
         out int selectedMultiSampleCount
)
public:
bool QueryRenderTargetFormat(
         GraphicsProfile graphicsProfile,
         SurfaceFormat format,
         DepthFormat depthFormat,
         int multiSampleCount,
         out SurfaceFormat selectedFormat,
         out DepthFormat selectedDepthFormat,
         out int selectedMultiSampleCount
)

Parameters

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

Return Value

Type: Boolean
True if the adapter supports the requested format; false otherwise.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

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

See Also

Reference

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

Platforms

Windows Phone