You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Also moves GPixelRenderCounters to new RenderCounters.h #rb chris.waters, juan.canada #preflight 63d949eb65738ba951d2b961, 63d94c68d21dbe1d29e2d2f5 [CL 23934938 by guillaume abadie in ue5-main branch]
39 lines
754 B
C++
39 lines
754 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreGlobals.h"
|
|
|
|
|
|
|
|
class FPixelRenderCounters
|
|
{
|
|
public:
|
|
uint32 GetPixelRenderCount() const
|
|
{
|
|
return PrevPixelRenderCount;
|
|
}
|
|
|
|
uint32 GetPixelDisplayCount() const
|
|
{
|
|
return PrevPixelDisplayCount;
|
|
}
|
|
|
|
void AddViewStatistics(uint32 PixelRenderCount, uint32 PixelDisplayCount)
|
|
{
|
|
check(IsInRenderingThread());
|
|
CurrentPixelRenderCount += PixelRenderCount;
|
|
CurrentPixelDisplayCount += PixelDisplayCount;
|
|
}
|
|
|
|
private:
|
|
uint32 PrevPixelRenderCount = 0;
|
|
uint32 PrevPixelDisplayCount = 0;
|
|
uint32 CurrentPixelRenderCount = 0;
|
|
uint32 CurrentPixelDisplayCount = 0;
|
|
|
|
friend void TickPixelRenderCounters();
|
|
};
|
|
|
|
extern RENDERCORE_API FPixelRenderCounters GPixelRenderCounters;
|