Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

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

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

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

Show:
© 2014 Microsoft