D3DPERF_SetMarker
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DPERF_SetMarker Function


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

Headerd3d9.h
Import libraryd3d9.lib
Minimum operating systems Windows 98

See Also

Gathering Data in the PIX Basic View


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.