Page MenuHome

DRW: New Select Debug Engine
ClosedPublic

Authored by Germano Cavalcante (mano-wii) on Aug 15 2019, 5:44 PM.

Details

Summary

(Not really essential)

This is a simple engine used only to debug the texture of select ids.
To enable it you need to set debug value 31.

Diff Detail

Repository
rB Blender

Event Timeline

This revision is now accepted and ready to land.Aug 17 2019, 4:47 PM
Clément Foucault (fclem) requested changes to this revision.Aug 17 2019, 4:58 PM

OOps there is a memleak, you need to free the shader when closing blender.

This revision now requires changes to proceed.Aug 17 2019, 4:58 PM
  • Fix memleak (registration was missing)
This revision is now accepted and ready to land.Aug 18 2019, 1:13 PM
Germano Cavalcante (mano-wii) abandoned this revision.EditedSep 17 2020, 2:36 PM

Outdated, and we don't really have problems in this area.
We can use debug tools like renderdoc for the same purpose.
So this patch is not seen really essential.

  • Update

For issues like T81266 this patch is important.

This revision is now accepted and ready to land.Aug 3 2021, 5:55 PM
Clément Foucault (fclem) added inline comments.
source/blender/draw/engines/select/select_debug_engine.c
93

Nitpick, you can draw one procedural triangle instead of using the fullscreen quad batch.

Germano Cavalcante (mano-wii) marked an inline comment as done.
  • Call DRW_shgroup_call_procedural_triangles
  • Add WITH_DRAW_DEBUG Cmake option

One thing that keeps me from committing this patch is that this code won't be useful to the end user.
So, in order not to add useless code to a non-developer user, I created the Cmake option WITH_DRAW_DEBUG.
So this engine is only used for development.

This revision was automatically updated to reflect the committed changes.