MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Mix

Method Mix

Source/Engine/Profiler/RenderStats.h:62–71  ·  view source on GitHub ↗

Mixes the stats with the current state. Perform operation: this = currentState - this, but without additional stack allocations. The current state.

Source from the content-addressed store, hash-verified

60 /// </summary>
61 /// <param name="currentState">The current state.</param>
62 void Mix(const RenderStatsData& currentState)
63 {
64#define MIX(name) name = currentState.name - name
65 MIX(DrawCalls);
66 MIX(DispatchCalls);
67 MIX(Vertices);
68 MIX(Triangles);
69 MIX(PipelineStateChanges);
70#undef MIX
71 }
72
73 RenderStatsData& operator+=(const RenderStatsData& other)
74 {

Callers 1

EndEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected