Performance-related statistics of a render pass.
More...
#include <GREM/graphics/RenderPass.hpp>
|
| 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.
|
|
| 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.
|
Performance-related statistics of a render pass.
◆ operator==()
| bool grem::graphics::RenderPass::Statistics::operator== |
( |
const Statistics & | other | ) |
const |
|
nodiscardconstexprdefaultnoexcept |
Compare this set of render pass statistics against another for equality.
- Parameters
-
| other | statistics to compare against. |
- Returns
- true if the statistics are equal, false otherwise.
◆ operator+=()
Add another set of render pass statistics to this one.
- Parameters
-
- Returns
- *this, for chaining.
◆ operator-=()
Subtract another set of render pass statistics from this one, using unsigned modular arithmetic.
- Parameters
-
| other | statistics to subtract. |
- Returns
- *this, for chaining.
◆ operator+
Add two sets of render pass statistics together.
- Parameters
-
| a | first statistics set. |
| b | second statistics set. |
- Returns
- the sum of the statistics sets.
◆ operator-
Subtract two sets of render pass statistics to produce the difference between them, using unsigned modular arithmetic.
- Parameters
-
| a | first statistics set. |
| b | second statistics set. |
- Returns
- the difference between the statistics sets.
◆ 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: