logoalt Hacker News

grovesNLyesterday at 4:53 PM3 repliesview on HN

In this case wgpu is just providing the surface texture for the window that the software rendered pixels are drawn into.


Replies

john01davyesterday at 6:57 PM

Softbuffer?

(I originally wrote this a few years ago but other people maintain it now)

show 1 reply
articulatepangyesterday at 7:58 PM

Yes, exactly this -- it's a fast and convenient way for my code to just write the pixels into a spot in RAM (the CPU's RAM, not VRAM) and have those pixels end up on screen. On modern architectures this nearly always goes through a GPU, so even if you're not using the GPU to accelerate your 3D rendering/math, you gotta deal with it just to put pixels on a screen at the end of the day. So that's what wgpu does for me.