GraphicsAPI reference
Struct Renderer2DStatistics
Namespace: MicroEngine.Graphics
Assembly: MicroEngine.Graphics2D.dll
Guide: Graphics
Deterministic counts of the last batch (Statistics), the same on every device and run.
public readonly struct Renderer2DStatistics : IEquatable<Renderer2DStatistics>Implements
IEquatable<Renderer2DStatistics>
Constructors
Renderer2DStatistics(int, int, int)
Deterministic counts of the last batch (Statistics), the same on every device and run.
public Renderer2DStatistics(int Sprites = 0, int DrawCalls = 0, int Flushes = 0)Parameters
Sprites int
Draws recorded (Draw and DrawGeometry calls).
DrawCalls int
Indexed draws sent to the device.
Flushes int
Command lists submitted (one per End, plus one per Clear or Flush that had work).
Properties
DrawCalls
Indexed draws sent to the device.
public int DrawCalls { get; init; }Property Value
Flushes
Command lists submitted (one per End, plus one per Clear or Flush that had work).
public int Flushes { get; init; }Property Value
Sprites
Draws recorded (Draw and DrawGeometry calls).
public int Sprites { get; init; }Property Value
Methods
Deconstruct(out int, out int, out int)
public void Deconstruct(out int Sprites, out int DrawCalls, out int Flushes)Parameters
Sprites int
DrawCalls int
Flushes int
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(Renderer2DStatistics)
public bool Equals(Renderer2DStatistics other)Parameters
other Renderer2DStatistics
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Renderer2DStatistics, Renderer2DStatistics)
public static bool operator ==(Renderer2DStatistics left, Renderer2DStatistics right)Parameters
left Renderer2DStatistics
right Renderer2DStatistics
Returns
operator !=(Renderer2DStatistics, Renderer2DStatistics)
public static bool operator !=(Renderer2DStatistics left, Renderer2DStatistics right)Parameters
left Renderer2DStatistics
right Renderer2DStatistics