PFND3DWDDM1_3DDI_SETMARKERMODE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3DWDDM1_3DDI_SETMARKERMODE Pfnd3dwddm13DdiSetmarkermode;

VOID Pfnd3dwddm13DdiSetmarkermode(
  D3D10DDI_HDEVICE hDevice,
  D3DWDDM1_3DDI_MARKER_TYPE Type,
  UINT Flags
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3dwddm1_3ddi_setmarkermode)

PFND3DWDDM1_3DDI_SETMARKERMODE callback function

Description

Notifies the user-mode display driver that it should support a type of Event Tracing for Windows (ETW) marker event. Must be implemented by Windows Display Driver Model (WDDM) 1.3 and later drivers.

Parameters

hDevice

A handle to the display device (graphics context).

Type

A value from the D3DWDDM1_3DDI_MARKER_TYPE enumeration that indicates the type of marker event that the driver should support.

Flags

A UINT value that indicates whether the driver should provide custom info in command buffers. If set to D3DWDDM1_3DDI_SETMARKERMODE_CUSTOMDRIVEREVENTS, the driver should annotate and instrument command buffers with custom event info. Otherwise, the driver should not annotate command buffers.

The annotation can be in the form of a text string in the English-US locale, or in the form of an index value to a location in a string table. For the latter option, the driver must also implement a function that describes the strings that the index values indicate.

Remarks

The driver can use the pfnSetErrorCb callback function to set an error code.

Follow these guidelines when you set up profile-type marker events in your user-mode driver, indicated by the D3DWDDM1_3DDI_MARKER_TYPE_PROFILE type:

See also

D3DWDDM1_3DDI_MARKER_TYPE