Damus

Recent Notes

Omar · 10w
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 · 10w
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 · 10w
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 · 10w
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 · 10w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs thanks for the update! I’ll see how I can tweak comments.
Omar · 11w
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 · 10w
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.
note1zpuw8...
NickDrisc0ll profile picture
@nprofile1q... a few things:
1. I know, though it is coincidentally the correct texture as the font texture is the only one Imgui knows about.
2. The provided Vulkan backend sucks and mine was already working before this update.
3. I very kindly tried to let you know that I wasn't looking for help from you, but you wouldn't stop responding, and I didn't want to just tell you to go away, so here we are. I'm sorry if my two-day-old WIP code is that offensive, but no one asked you to look at it.
1
Omar · 11w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqdyq5vl6yhxjw7qap82cjdheckk4a3kg0xtlykgm4w9elme8cnn8q7cajxs about (2) can you details what it doesn't do for you? (3) yes because i'm fishing for info which might turn into documentation improvements, and I'd appreciate a list of what went wrong....