Struct GraphicsMetrics
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
DrawCount
Number of times Draw was called.
public long DrawCount { get; }
Property Value
PixelShaderCount
Number of times the pixel shader was changed on the GPU.
public long PixelShaderCount { get; }
Property Value
PrimitiveCount
Number of rendered primitives.
public long PrimitiveCount { get; }
Property Value
SpriteCount
Number of sprites and text characters rendered via SpriteBatch.
public long SpriteCount { get; }
Property Value
TargetCount
Number of times a target was changed on the GPU.
public long TargetCount { get; }
Property Value
TextureCount
Number of times a texture was changed on the GPU.
public long TextureCount { get; }
Property Value
VertexShaderCount
Number of times the vertex shader was changed on the GPU.
public long VertexShaderCount { get; }
Property Value
Operators
operator +(GraphicsMetrics, GraphicsMetrics)
Returns the combination of two sets of metrics.
public static GraphicsMetrics operator +(GraphicsMetrics value1, GraphicsMetrics value2)
Parameters
value1
GraphicsMetricsSource GraphicsMetrics on the left of the add sign.
value2
GraphicsMetricsSource 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
GraphicsMetricsSource GraphicsMetrics on the left of the sub sign.
value2
GraphicsMetricsSource GraphicsMetrics on the right of the sub sign.
Returns
- GraphicsMetrics
Difference between two sets of metrics.