Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::DirectXPerfMarker Class Reference

DirectX performance marker. More...

Public Member Functions

BURGER_INLINE DirectXPerfMarker (uint32_t uColor, const uint16_t *pMessage) BURGER_NOEXCEPT
 Start a D3DPERF performance marker.
 
BURGER_INLINE ~DirectXPerfMarker () BURGER_NOEXCEPT
 End a D3DPERF performance marker.
 

Private Member Functions

 BURGER_DISABLE_COPY (DirectXPerfMarker)
 

Detailed Description

DirectX performance marker.


To quickly monitor performance of Direct X code, place instances of this class at the top of a function of interest. When the class instanciates, it will set a Direct X performance marker and when the class goes out of scope, it will end performance capture.

{
// Benchmark background draws in PIX
DirectXPerfMarker(BLACK, L"Background");
DrawBackground();
}
{
// Benchmark characters drawing in PIX
DirectXPerfMarker(WHITE, L"Characters");
DrawCharacters();
}
BURGER_INLINE DirectXPerfMarker(uint32_t uColor, const uint16_t *pMessage) BURGER_NOEXCEPT
Start a D3DPERF performance marker.
Definition burgerwindows.h:525
Note
This is only available on Windows

Constructor & Destructor Documentation

◆ DirectXPerfMarker()

BURGER_INLINE Burger::DirectXPerfMarker::DirectXPerfMarker ( uint32_t uColor,
const uint16_t * pMessage )
inline

Start a D3DPERF performance marker.


See also
Win32::D3DPERF_BeginEvent(uint32_t, const uint16_t*)

◆ ~DirectXPerfMarker()

BURGER_INLINE Burger::DirectXPerfMarker::~DirectXPerfMarker ( )
inline

End a D3DPERF performance marker.


See also
Win32::D3DPERF_EndEvent()

Member Function Documentation

◆ BURGER_DISABLE_COPY()

Burger::DirectXPerfMarker::BURGER_DISABLE_COPY ( DirectXPerfMarker )
private