0

I want to debug my shaders using render doc (https://renderdoc.org/). I can capture the window. However the texture there is the whole window and the pipeline is also rendering of the whole window.

I see where texture of the openglwidget I used is generated, but I cannot inspect into it further, to go back in time or a place where the shader and buffers used to generate that texture was.

My question is how to get those details?

Nabi
  • 393
  • 1
  • 5
  • 13
  • Are you capturing all OpenGL commands from the start or are you attaching Renderdoc at a later point in time? – Botje Sep 01 '23 at 12:30
  • @Botje, It was from start. I think qt was not calling the draw of the widget on every window draw. I capture multiple frames now and then I can see it now and then appearing in one of the frames. Better would be to use the API indeed. To start the capture right before my draw call is starting in that widget. – Nabi Sep 01 '23 at 13:38
  • 1
    By default Qt will not redraw your widget unless it has to. You can call the `update()` slot (once or on a time) if you want to force redraws. – Botje Sep 01 '23 at 13:40
  • Indeed right. I have to correct that I was not capturing from the start also. Just saw that option in renderdoc launch. and there I am (probably) guaranteed to capture the draw of the widget. – Nabi Sep 01 '23 at 14:06

0 Answers0