diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-11-09 13:17:07 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-11-09 13:17:07 +0300 |
commit | 027ca9b91e84cd84e2714216d04ab9a02e52d494 (patch) | |
tree | 75682bc8e536f668446710bc9207a2af5d156038 /source/blender/editors | |
parent | 935cabdb6af74a0d31799d4b1f8111a17bcc2772 (diff) |
Add GPU debugging group.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.cc b/source/blender/editors/space_view3d/view3d_draw.cc index 15356adab58..2b66dbe840d 100644 --- a/source/blender/editors/space_view3d/view3d_draw.cc +++ b/source/blender/editors/space_view3d/view3d_draw.cc @@ -65,6 +65,7 @@ #include "GPU_batch.h" #include "GPU_batch_presets.h" +#include "GPU_debug.h" #include "GPU_framebuffer.h" #include "GPU_immediate.h" #include "GPU_immediate_util.h" @@ -1602,9 +1603,11 @@ static void view3d_draw_virtual_camera(const bContext *C, ARegion *region) // go over each camera and set the flag to virtual camera. view3d_virtual_camera_stage_set(bmain, true); + GPU_debug_group_begin("VirtualCameras"); for (Object *object : virtual_cameras) { view3d_virtual_camera_update(C, region, object); } + GPU_debug_group_end(); // get reference of the gpu texture and change its ownership // go over eah camera and set the flag back to main camera. |