GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::RenderPass::Statistics Struct Reference

Performance-related statistics of a render pass. More...

#include <GREM/graphics/RenderPass.hpp>

Public Member Functions

constexpr bool operator== (const Statistics &other) const noexcept=default
 Compare this set of render pass statistics against another for equality.
constexpr Statistics & operator+= (const Statistics &other) noexcept
 Add another set of render pass statistics to this one.
constexpr Statistics & operator-= (const Statistics &other) noexcept
 Subtract another set of render pass statistics from this one, using unsigned modular arithmetic.

Public Attributes

size_t totalDrawnVertexCount = 0
 Total number of vertices processed in the render pass, including the duplicated vertices produced by instancing.
size_t totalDrawnIndexCount = 0
 Total number of vertex indices processed in the render pass, including the duplicated indices produced by instancing.
size_t totalDrawnInstanceCount = 0
 Total number of mesh instances processed in the render pass.
size_t totalDrawCallCount = 0
 Total number of draw calls to the underlying graphics API required by the render pass for the current graphics backend.

Friends

constexpr Statistics operator+ (const Statistics &a, const Statistics &b) noexcept
 Add two sets of render pass statistics together.
constexpr Statistics operator- (const Statistics &a, const Statistics &b) noexcept
 Subtract two sets of render pass statistics to produce the difference between them, using unsigned modular arithmetic.

Detailed Description

Performance-related statistics of a render pass.

Member Function Documentation

◆ operator==()

bool grem::graphics::RenderPass::Statistics::operator== ( const Statistics & other) const
nodiscardconstexprdefaultnoexcept

Compare this set of render pass statistics against another for equality.

Parameters
otherstatistics to compare against.
Returns
true if the statistics are equal, false otherwise.

◆ operator+=()

Statistics & grem::graphics::RenderPass::Statistics::operator+= ( const Statistics & other)
inlineconstexprnoexcept

Add another set of render pass statistics to this one.

Parameters
otherstatistics to add.
Returns
*this, for chaining.

◆ operator-=()

Statistics & grem::graphics::RenderPass::Statistics::operator-= ( const Statistics & other)
inlineconstexprnoexcept

Subtract another set of render pass statistics from this one, using unsigned modular arithmetic.

Parameters
otherstatistics to subtract.
Returns
*this, for chaining.

◆ operator+

Statistics operator+ ( const Statistics & a,
const Statistics & b )
friend

Add two sets of render pass statistics together.

Parameters
afirst statistics set.
bsecond statistics set.
Returns
the sum of the statistics sets.

◆ operator-

Statistics operator- ( const Statistics & a,
const Statistics & b )
friend

Subtract two sets of render pass statistics to produce the difference between them, using unsigned modular arithmetic.

Parameters
afirst statistics set.
bsecond statistics set.
Returns
the difference between the statistics sets.

Member Data Documentation

◆ totalDrawnVertexCount

size_t grem::graphics::RenderPass::Statistics::totalDrawnVertexCount = 0

Total number of vertices processed in the render pass, including the duplicated vertices produced by instancing.

◆ totalDrawnIndexCount

size_t grem::graphics::RenderPass::Statistics::totalDrawnIndexCount = 0

Total number of vertex indices processed in the render pass, including the duplicated indices produced by instancing.

Note
Non-indexed meshes add their raw vertex count to this counter instead.

◆ totalDrawnInstanceCount

size_t grem::graphics::RenderPass::Statistics::totalDrawnInstanceCount = 0

Total number of mesh instances processed in the render pass.

◆ totalDrawCallCount

size_t grem::graphics::RenderPass::Statistics::totalDrawCallCount = 0

Total number of draw calls to the underlying graphics API required by the render pass for the current graphics backend.


The documentation for this struct was generated from the following file: