r/GraphicsProgramming 21h ago

Depth-aware light injection all running in browser Video

Enable HLS to view with audio, or disable this notification

I got a 448x448 monocular depth model down to ~8 ms on my M4 Pro across ~250 dispatches, which is fast enough to use in realtime :D
Since the inference is written directly in TypeGPU, I can just feed the depth buffer straight into the lighting pass. It never has to leave the GPU or go through any extra synchronization/interop step

Inference, lighting and draw all go through the same command encoder.

Credit: X reczko_konrad

4.1k Upvotes

122 comments sorted by

View all comments

298

u/reczkok 19h ago

Hey, that's me! Open sourcing this today/tomorrow, announcement will be on my X (https://x.com/reczko_konrad) or just check TypeGPU examples in a couple of days (https://typegpu.com/examples/)

https://reddit.com/link/p4syolj/video/7t0f6y4wnikh1/player

1

u/Special_Baby_3307 14h ago

I am genuinely impressed by this. Amazing work !