From ba71b43a39a7440350a54a57a143ed3473470581 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 18 Oct 2019 21:58:30 +0200 Subject: [PATCH] gfx-source-texture: Add debug markers --- source/gfx/gfx-source-texture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/gfx/gfx-source-texture.cpp b/source/gfx/gfx-source-texture.cpp index 8fc30dd..7b958bf 100644 --- a/source/gfx/gfx-source-texture.cpp +++ b/source/gfx/gfx-source-texture.cpp @@ -117,6 +117,7 @@ std::shared_ptr gfx::source_texture::render(size_t width, size_t he } { + GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_ITEM, "gfx::source_texture"); auto op = _rt->render((uint32_t)width, (uint32_t)height); vec4 black; vec4_zero(&black); @@ -125,6 +126,7 @@ std::shared_ptr gfx::source_texture::render(size_t width, size_t he if (_child) { obs_source_video_render(_child->get()); } + GS_DEBUG_MARKER_END(); } std::shared_ptr tex;