GraphicsMetrics Structure (Microsoft.Xna.Framework.Graphics)

A snapshot of rendering statistics from Metrics to be used for runtime debugging and profiling.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1018)
  • C#
  • VB
  • F#
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = -1, Size = -1)]
public struct GraphicsMetrics

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The GraphicsMetrics type exposes the following members.

  Platforms Name Description
ClearCount Number of times Clear was called. 
DrawCount Number of times Draw was called. 
PixelShaderCount Number of times the pixel shader was changed on the GPU. 
PrimitiveCount Number of rendered primitives. 
SpriteCount Number of sprites and text characters rendered via SpriteBatch
TargetCount Number of times a target was changed on the GPU. 
TextureCount Number of times a texture was changed on the GPU. 
VertexShaderCount Number of times the vertex shader was changed on the GPU. 
Top
  Platforms Name Description
Subtraction Returns the difference between two sets of metrics. 
Addition Returns the combination of two sets of metrics. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web