Files
WickedEngine/WickedEngine/wiProfiler.h
T
Turánszki János 4a11d6a202 Dpi awareness (#109)
* dpi awareness test

* dpi scaling updates

* dpi scaling updates

* missing mouse inputs fix (I hope finally)

* finishing up the dpi branch...
2020-05-05 00:04:38 +01:00

34 lines
764 B
C++

#pragma once
#include "wiGraphicsDevice.h"
#include <string>
namespace wiProfiler
{
typedef size_t range_id;
// Begin collecting profiling data for the current frame
void BeginFrame();
// Finalize collecting profiling data for the current frame
void EndFrame(wiGraphics::CommandList cmd);
// Start a CPU profiling range
range_id BeginRangeCPU(const char* name);
// Start a GPU profiling range
range_id BeginRangeGPU(const char* name, wiGraphics::CommandList cmd);
// End a profiling range
void EndRange(range_id id);
// Renders a basic text of the Profiling results to the (x,y) screen coordinate
void DrawData(float x, float y, wiGraphics::CommandList cmd);
// Enable/disable profiling
void SetEnabled(bool value);
bool IsEnabled();
};