libobs/graphics: Support debug markers
Add support for debug markers via D3DPERF API and KHR_debug. This makes it easier to understand RenderDoc captures. D3DPERF is preferred to ID3DUserDefinedAnnotation because it supports colors. d3d9.lib is now linked in to support this. This feature is disabled by default, and is controlled by GS_USE_DEBUG_MARKERS. From: obsproject/obs-studio#1799
This commit is contained in:
@@ -142,6 +142,9 @@ EXPORT void device_frustum(gs_device_t *device, float left, float right,
|
||||
float top, float bottom, float znear, float zfar);
|
||||
EXPORT void device_projection_push(gs_device_t *device);
|
||||
EXPORT void device_projection_pop(gs_device_t *device);
|
||||
EXPORT void device_debug_marker_begin(gs_device_t *device,
|
||||
const char *markername, const float color[4]);
|
||||
EXPORT void device_debug_marker_end(gs_device_t *device);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user