Damus
Omar · 8w
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.