D3DPERF_SetMarker

Mark an instantaneous event. PIX can use this event to trigger an action.

void D3DPERF_SetMarker(
  D3DCOLOR col,
  LPCWSTR wszName
);

Parameters

col
Event color. This is the color to display the event in the event view.
wszName
Event name.

Return Values

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 multiple events under a single, user-defined name, use D3DPERF_BeginEvent and D3DPERF_EndEvent rather than D3DPERF_SetMarker.

Requirements

Header: Declared in D3d9.h.

See Also

PIX