Mixes the stats with the current state. Perform operation: this = currentState - this, but without additional stack allocations. The current state.
| 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 | { |