XLE  v0.02.0
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
PlatformRig::Overlays::BufferUploadDisplay Class Reference
Inheritance diagram for PlatformRig::Overlays::BufferUploadDisplay:
Inheritance graph
[legend]

Classes

struct  FrameRecord
 
struct  GPUMetrics
 

Public Member Functions

 BufferUploadDisplay (BufferUploads::IManager *manager)
 
void Render (IOverlayContext *context, Layout &layout, Interactables &interactables, InterfaceState &interfaceState)
 
bool ProcessInput (InterfaceState &interfaceState, const InputSnapshot &input)
 

Protected Types

typedef uint64 GPUTime
 

Protected Member Functions

GPUMetrics CalculateGPUMetrics ()
 
void AddCommandListToFrame (unsigned frameId, unsigned commandListIndex)
 
void AddGPUToCostToFrame (unsigned frameId, float gpuCost)
 
void ProcessGPUEvents (const void *eventsBufferStart, const void *eventsBufferEnd)
 
void ProcessGPUEvents_MT (const void *eventsBufferStart, const void *eventsBufferEnd)
 
void DrawMenuBar (IOverlayContext *context, Layout &layout, Interactables &interactables, InterfaceState &interfaceState)
 
void DrawDisplay (IOverlayContext *context, Layout &layout, Interactables &interactables, InterfaceState &interfaceState)
 
void DrawStatistics (IOverlayContext *context, Layout &layout, Interactables &interactables, InterfaceState &interfaceState, const BufferUploads::CommandListMetrics &mostRecentResults)
 
void DrawRecentRetirements (IOverlayContext *context, Layout &layout, Interactables &interactables, InterfaceState &interfaceState)
 
size_t FillValuesBuffer (unsigned graphType, unsigned uploadType, float valuesBuffer[], size_t valuesMaxCount)
 

Static Protected Member Functions

static void GPUEventListener (const void *eventsBufferStart, const void *eventsBufferEnd)
 

Protected Attributes

std::deque< BufferUploads::CommandListMetrics_recentHistory
 
BufferUploads::IManager_manager
 
std::deque< FrameRecord_frames
 
std::vector< unsigned > _gpuEventsBuffer
 
Threading::Mutex _gpuEventsBufferLock
 
GPUTime _mostRecentGPUFrequency
 
GPUTime _lastUploadBeginTime
 
float _mostRecentGPUCost
 
unsigned _mostRecentGPUFrameId
 
unsigned _lockedFrameId
 
float _graphMinValueHistory
 
float _graphMaxValueHistory
 
unsigned _accumulatedCreateCount [BufferUploads::UploadDataType::Max]
 
unsigned _accumulatedCreateBytes [BufferUploads::UploadDataType::Max]
 
unsigned _accumulatedUploadCount [BufferUploads::UploadDataType::Max]
 
unsigned _accumulatedUploadBytes [BufferUploads::UploadDataType::Max]
 
double _reciprocalTimerFrequency
 
unsigned _graphsMode
 

Static Protected Attributes

static BufferUploadDisplays_gpuListenerDisplay = 0
 

The documentation for this class was generated from the following files: