Damus

Recent Notes

Omar · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs There's a whole thread of "Don't do this at home" uses of the ImDrawList API if you are curious: https://github.com/ocornut/imgui/issues/3606#issuecomment-734985352 Hopefully it's not me...
Omar · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs ImDrawList is surprisingly versatile, as long as you don't need a different format for ImDrawVtx data, you can do a lot by e.g. using draw callback. https://www.thedragonstrap.com (the g...
Omar · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs ... possibly there's info loss from the fact you are on a different backend which migh...
NickDrisc0ll profile picture
@nprofile1q... yes those are the Odin bindings I've forked for my project, but I typically just browse imgui.h anyway when I'm looking for answers.

I don't know what kinds of comment improvements you could make, as my whole issue was based on a misunderstanding of the semantics of tex->Pixels that, in hindsight, was founded on absolutely nothing. I even knew about GetPixels*(), but it just didn't matter in the face of my idiotic assumption...
1
Omar · 6w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs Thanks for taking the time to answer on those back and forth! Hopefully that annoying transition is done and new system will work well for you!
Omar · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs thanks for the update! I’ll see how I can tweak comments.
Omar · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs I tried calling ClearFonts() in both DX11/Vulkan backends and surprisingly (or not sur...
NickDrisc0ll profile picture
@nprofile1q... Just wanted to let you know that I got things working.

The only thing about Dear ImGUI itself that confused me was that tex->Pixels always points to the _full_ image, not just pixels for the current subrect, and therefore the backend is expected to manually extract the relevant pixel data itself. I have no idea why I assumed that in the first place, but I only figured it out during my nth read of the Vulkan backend diff when I finally spotted the memcpy code.

1
NickDrisc0ll · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqqw9huvn8gh2svc3r7vlc9qcwy2l8rg0yxfzht4pd5e0z4s9j3jtqpwwxct it also makes sense now why "clearing the CPU-side texture data" no longer means anything, as the library might have to update that image data on any frame.