GraphicsAdapter.QueryRenderTargetFormat Method (Microsoft.Xna.Framework.Graphics)

Queries for support of the requested render target format on the adaptor.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public bool QueryRenderTargetFormat(
	GraphicsProfile graphicsProfile, 
	SurfaceFormat format, 
	DepthFormat depthFormat, 
	int multiSampleCount, 
	out SurfaceFormat selectedFormat, 
	out DepthFormat selectedDepthFormat, 
	out Int32 selectedMultiSampleCount
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

graphicsProfile
Type: Microsoft.Xna.Framework.Graphics.GraphicsProfile
The graphics profile.
format
Type: Microsoft.Xna.Framework.Graphics.SurfaceFormat
The requested surface format.
depthFormat
Type: Microsoft.Xna.Framework.Graphics.DepthFormat
The requested depth stencil format.
multiSampleCount
Type: System.Int32
The requested multisample count.
selectedFormat
Type: out Microsoft.Xna.Framework.Graphics.SurfaceFormat
Set to the best format supported by the adaptor for the requested surface format.
selectedDepthFormat
Type: out Microsoft.Xna.Framework.Graphics.DepthFormat
Set to the best format supported by the adaptor for the requested depth stencil format.
selectedMultiSampleCount
Type: out System.Int32
Set to the best count supported by the adaptor for the requested multisample count.

Return Value

Type: System.Boolean
True if the requested format is supported by the adaptor. False if one or more of the values was changed.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web