Skip to content

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.

C#
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.

C#
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.

C#
public int DrawCalls { get; init; }

Property Value

int

Flushes

Command lists submitted (one per End, plus one per Clear or Flush that had work).

C#
public int Flushes { get; init; }

Property Value

int

Sprites

Draws recorded (Draw and DrawGeometry calls).

C#
public int Sprites { get; init; }

Property Value

int

Methods

Deconstruct(out int, out int, out int)

C#
public void Deconstruct(out int Sprites, out int DrawCalls, out int Flushes)

Parameters

Sprites int

DrawCalls int

Flushes int

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(Renderer2DStatistics)

C#
public bool Equals(Renderer2DStatistics other)

Parameters

other Renderer2DStatistics

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(Renderer2DStatistics, Renderer2DStatistics)

C#
public static bool operator ==(Renderer2DStatistics left, Renderer2DStatistics right)

Parameters

left Renderer2DStatistics

right Renderer2DStatistics

Returns

bool

operator !=(Renderer2DStatistics, Renderer2DStatistics)

C#
public static bool operator !=(Renderer2DStatistics left, Renderer2DStatistics right)

Parameters

left Renderer2DStatistics

right Renderer2DStatistics

Returns

bool