Export (0) Print
Expand All

GraphicsAdapter.QueryRenderTargetFormat Method

XNA Game Studio 4.0
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
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.

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

Community Additions

ADD
Show:
© 2014 Microsoft