// d3dumddi.h
PFND3DDDI_SETMARKERMODE Pfnd3dddiSetmarkermode;
HRESULT Pfnd3dddiSetmarkermode(
HANDLE hDevice,
D3DDDI_MARKERTYPE Type,
UINT Flags
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Notifies the user-mode display driver that it should support a type of Event Tracing for Windows (ETW) marker event. Optionally implemented by Windows Display Driver Model (WDDM) 1.3 and later drivers running on Microsoft Direct3D Level 9 hardware. (See requirements in Direct3D rendering performance improvements.) For more advanced hardware, drivers should implement the SetMarkerMode function.
hDeviceA handle to the display device (graphics context).
TypeA value from the D3DDDI_MARKERTYPE enumeration that indicates the type of marker event that the driver should support.
FlagsA UINT value that indicates whether the driver should provide custom info in command buffers. If set to D3DDDI_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.
Returns S_OK or an appropriate error result if the function does not complete successfully.
Follow these guidelines when you set up profile-type marker events in your user-mode driver, indicated by the D3DDDIMT_PROFILE type: