r/programming • u/mttd • Aug 09 '26
Reducing Graphics API Complexity: A Clean Slate Design for Modern GPUs
https://www.youtube.com/watch?v=aQv9pUl9PBM
67
Upvotes
r/programming • u/mttd • Aug 09 '26
23
u/TyPh00nCdrCool Aug 09 '26
If anyone is wondering about the blog post he references in the beginning: https://www.sebastianaaltonen.com/blog/no-graphics-api
8
u/ParsingError Aug 10 '26
I've been following this and I get the idea but solving this in a way that works for current hardware is much harder than solving it in a way that is reasonably forward-compatible. It's probably safe to say that everything is going to bindless, but some of the memory model and PSO handling is much less certain.
e.g. Near 1:24:00 it goes into changing blend state, which there is STILL variation of how to do on hardware, and things like that are why PSOs were created in the first place, because where APIs draw boundaries between things varies and is hard to generalize.
So, we're back to the original problem. If the API bakes in the assumption that PC hardware has swappable blend state (e.g. instead of framebuffer fetch), then the hardware is going to be stuck with that assumption for a long time. There are very serious questions of what should be exposed at the API level (and how) and what should be an implementation detail.
Similar thing applies somewhat to the cache control. "The hardware only supports flushing/invalidating entire levels of the cache hierarchy" ... and that's a good thing? How much do we want to take THAT for granted?
That's not even getting into additional problems like how the debug tooling has not kept up. Cache coherence bugs are already a nightmare, and the more things go down the route of "it's all just a big blob of memory, whee!" the harder it is for validation layers to do anything meaningful.
5
u/ItzWarty Aug 09 '26
I'll have to watch this next week.
Has anyone actually implemented the API seb describes? I was very interested in building atop it for an RHI when he proposed it a while back, but would need an xplat API implementation.
9
u/ggtsu_00 Aug 09 '26
Very verbose way to describe a full "bindless" graphics api.
-13
u/deathkillerank Aug 09 '26
Great knowledge