Table of Contents

Struct GraphicsMetrics

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

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

public struct GraphicsMetrics
Inherited Members

Properties

ClearCount

Number of times Clear was called.

public long ClearCount { get; }

Property Value

long

DrawCount

Number of times Draw was called.

public long DrawCount { get; }

Property Value

long

PixelShaderCount

Number of times the pixel shader was changed on the GPU.

public long PixelShaderCount { get; }

Property Value

long

PrimitiveCount

Number of rendered primitives.

public long PrimitiveCount { get; }

Property Value

long

SpriteCount

Number of sprites and text characters rendered via SpriteBatch.

public long SpriteCount { get; }

Property Value

long

TargetCount

Number of times a target was changed on the GPU.

public long TargetCount { get; }

Property Value

long

TextureCount

Number of times a texture was changed on the GPU.

public long TextureCount { get; }

Property Value

long

VertexShaderCount

Number of times the vertex shader was changed on the GPU.

public long VertexShaderCount { get; }

Property Value

long

Operators

operator +(GraphicsMetrics, GraphicsMetrics)

Returns the combination of two sets of metrics.

public static GraphicsMetrics operator +(GraphicsMetrics value1, GraphicsMetrics value2)

Parameters

value1 GraphicsMetrics

Source GraphicsMetrics on the left of the add sign.

value2 GraphicsMetrics

Source GraphicsMetrics on the right of the add sign.

Returns

GraphicsMetrics

Combination of two sets of metrics.

operator -(GraphicsMetrics, GraphicsMetrics)

Returns the difference between two sets of metrics.

public static GraphicsMetrics operator -(GraphicsMetrics value1, GraphicsMetrics value2)

Parameters

value1 GraphicsMetrics

Source GraphicsMetrics on the left of the sub sign.

value2 GraphicsMetrics

Source GraphicsMetrics on the right of the sub sign.

Returns

GraphicsMetrics

Difference between two sets of metrics.