![]() |
![]() |
![]() |
Specifies to a performance profiler (such as PIX) that an instantaneous user-defined event is occurring.
Syntax
void WINAPI D3DPERF_SetMarker(
D3DCOLOR col, LPCWSTR wszName );
Parameters
- col
- A color that may be used by the profiler to show a graphical representation of the event.
- wszName
- The name of the event.
Return Value
None.
Remarks
Instantaneous user events do not bracket or group other events. For example, when the user fires a weapon in a game, a "Shot Fired" event could be created by a D3DPERF_SetMarker call. To group together a number of events under one user-defined name, use D3DPERF_BeginEvent and D3DPERF_EndEvent rather than D3DPERF_SetMarker.
Function Information
Header d3d9.h Import library d3d9.lib Minimum operating systems Windows 98
See Also
Gathering Data in the PIX Basic View