I E

Sunstone dev log 27: ImGui

Today I hooked up Dear ImGui:

It was pretty straightforward to make it do anything at all, it was tricky to get working properly with my render pipeline.

In dev log 24 I chose to use a single-sample HDR render target, which means that the LDR render target written to by the post-processing pipeline is also single-sample. I wanted ImGUI to use the same MSAA setting as the rest of the program, which is 4x MSAA by default. Ideally I’d just have ImGui draw over the top of the LDR render target after post-processing, but it can’t do that because of the mismatch in image samples. I had to resolve the 4-sample ImGui attachment to a single-sample one, then add a compositing pass to draw that over the top of post-processing output. It was hard to keep track of which pipelines used which images, so I drew a little diagram:

Maybe that’s a hint that I’ll soon need to encode a render graph to tame the complexity.

What I built

What I learned

Next steps

← Sunstone dev log 26: luminance histogram Newest