« BackNo Graphics APIsebastianaaltonen.comSubmitted by ryandrake 10 hours ago
  • vblanco 10 hours ago

    This is a fantastic article that demonstrates how many parts of vulkan and DX12 are no longer needed.

    I hope the IHVs have a look at it because current DX12 seems semi abandoned, with it not supporting buffer pointers even when every gpu made on the last 10 (or more!) years can do pointers just fine, and while Vulkan doesnt do a 2.0 release that cleans things, so it carries a lot of baggage, and specially, tons of drivers that dont implement the extensions that really improve things.

    If this api existed, you could emulate openGL on top of this faster than current opengl to vulkan layers, and something like SDL3 gpu would get a 3x/4x boost too.

    • pjmlp 9 hours ago

      DirectX documentation is on a bad state currently, you have the Frank Lunas's books, which don't cover the latest improvements, and then is hunting through Learn, Github samples and reference docs.

      Vulkan is another mess, even if there was a 2.0, how are devs supposed to actually use it, especially on Android, the biggest consumer Vulkan platform?

      • _bohm 6 hours ago

        I'm surprised he made no mention of the SDL3 GPU API since his proposed API has pretty significant overlap with it.

        • kllrnohj 6 hours ago

          No longer needed is a strong statement given how recent the GPU support is. It's unlikely anything could accept those minimum requirements today.

          But soon? Hopefully

          • jsheard 5 hours ago

            Those requirements more or less line up with the introduction of hardware raytracing, and some major titles are already treating that as a hard requirement, like the recent Doom and Indiana Jones games.

            • kllrnohj 5 hours ago

              Only if you're ignoring mobile entirely. One of the things Vulkan did which would be a shame to lose is it unified desktop and mobile GPU APIs.

              • jsheard 5 hours ago

                Eh, I think the jury is still out on whether unifying desktop and mobile graphics APIs is really worth it. In practice Vulkan written to take full advantage of desktop GPUs is wildly incompatible with most mobile GPUs, so there's fragmentation between them regardless.

                • kllrnohj 4 hours ago

                  It's quite useful for things like skia or piet-gpu/vello or the general category of "things that use the GPU that aren't games" (image/video editors, effects pipelines, compute, etc etc etc)

                  • Groxx 3 hours ago

                    would it also apply to stuff like the Switch, and relatively high-end "mobile" gaming in general? (I'm not sure what those chips actually look like tho)

                    there are also some arm laptops that just run Qualcomm chips, the same as some phones (tablets with a keyboard, basically, but a bit more "PC"-like due to running Windows).

                    AFAICT the fusion seems likely to be an accurate prediction.

                    • jsheard 4 hours ago

                      I suppose that's true, yeah. I was focusing too much on games specifically.

                • tjpnz 5 hours ago

                  Doom was able to drop it and is now Steam Deck verified.

              • tadfisher 9 hours ago

                Isn't this all because PCI resizable BAR is not required to run any GPU besides Intel Arc? As in, maybe it's mostly down to Microsoft/Intel mandating reBAR in UEFI so we can start using stuff like bindless textures without thousands of support tickets and negative reviews.

                I think this puts a floor on supported hardware though, like Nvidia 30xx and Radeon 5xxx. And of course motherboard support is a crapshoot until 2020 or so.

                • vblanco 9 hours ago

                  This is not really directly about resizable BAR. you could do mostly the same api without it. Resizable bar simplifies it a little bit because you skip manual transfer operations, but its not completely required as you can write things to a cpu-writeable buffer and then begin your frame with a transfer command.

                  Bindless textures never needed any kind of resizable BAR, you have been able to use them since early 2010s on opengl through an extension. Buffer pointers also have never needed it.

              • opminion 9 hours ago

                The article is missing this motivation paragraph, taken from the blog index:

                > Graphics APIs and shader languages have significantly increased in complexity over the past decade. It’s time to start discussing how to strip down the abstractions to simplify development, improve performance, and prepare for future GPU workloads.

                • stevage 6 hours ago

                  Thanks, I had trouble figuring out what the article was about, lost in all the "here's how I used AI and had the article screened by industry insiders".

                  • masspro 3 hours ago

                    I read that whole (single) paragraph as “I made really, really, really sure I didn’t violate any NDAs by doing these things to confirm everything had a public source”

                    • yuriks 2 hours ago

                      I was lost when it suddenly jumped from a long retrospective on GPUs to abruptly talking about "my allocator API" on the next paragraph with no segue or justification.

                      • doctorpangloss 5 hours ago

                        haha, instead of making them read an AI-coauthored blog post, which obviously, they didn't do, he could have asked them interesting questions like, "Do better graphics make better games?" or "If you could change anything about the platforms' technology, what would it be?"

                      • alberth 9 hours ago

                        Would this be analogous to NVMe?

                        Meaning ... SSDs initially reused IDE/SATA interfaces, which had inherent bottlenecks because those standards were designed for spinning disks.

                        To fully realize SSD performance, a new transport had to be built from the ground up, one that eliminated those legacy assumptions, constraints and complexities.

                        • rnewme 8 hours ago

                          ...and introduced new ones.

                      • starkparker 5 hours ago

                        > GPU hardware started to shift towards a generic SIMD design. SIMD units were now executing all the different shader types: vertex, pixel, geometry, hull, domain and compute. Today the framework has 16 different shader entry points. This adds a lot of API surface and makes composition difficult. As a result GLSL and HLSL still don’t have a flourishing library ecosystem ... despite 20 years of existence

                        A lot of this post went over my head, but I've struggled enough with GLSL for this to be triggering. Learning gets brutal for the lack of middle ground between reinventing every shader every time and using an engine that abstracts shaders from the render pipeline. A lot of open-source projects that use shaders are either allergic to documenting them or are proud of how obtuse the code is. Shadertoy is about as good as it gets, and that's not a compliment.

                        The only way I learned anything about shaders was from someone who already knew them well. They learned what they knew by spending a solid 7-8 years of their teenage/young adult years doing nearly nothing but GPU programming. There's probably something in between that doesn't involve giving up and using node-based tools, but in a couple decades of trying and failing to grasp it I've never found it.

                      • pjmlp 9 hours ago

                        I have followed Sebastian Aaltonen's work for quite a while now, so maybe I am a bit biased, this is however a great article.

                        I also think that the way forward is to go back to software rendering, however this time around those algorithms and data structures are actually hardware accelerated as he points out.

                        Note that this is an ongoing trend on VFX industry already, about 5 years ago OTOY ported their OctaneRender into CUDA as the main rendering API.

                        • gmueckl 7 hours ago

                          There are tons of places within the GPU where dedicated fixed function hardware provides massive speedups within the relevant pipelines (rasterization, raytracing). The different shader types are designed to fit inbetween those stages. Abandoning this hardware would lead to a massive performance regression.

                          • formerly_proven 6 hours ago

                            Just consider the sheer number of computations offloaded to TMUs. Shaders would already do nothing but interpolate texels if you removed them.

                            • efilife 7 hours ago

                              Offtop, but sorry, I can't resist. "Inbetween" is not a word. I started seeing many people having trouble with prepositions lately, for some unknown reason.

                              > “Inbetween” is never written as one word. If you have seen it written in this way before, it is a simple typo or misspelling. You should not use it in this way because it is not grammatically correct as the noun phrase or the adjective form. https://grammarhow.com/in-between-in-between-or-inbetween/

                          • Q6T46nT668w6i3m 4 hours ago

                            But they still rely on fixed functions for a handful of essential ops (e.g., intersection).

                            • mrec 8 hours ago

                              Isn't this already happening to some degree? E.g. UE's Nanite uses a software rasterizer for small triangles, albeit running on the GPU via a compute shader.

                              • jsheard 8 hours ago

                                Things are kind of heading in two opposite directions at the moment. Early GPU rasterization was all done in fixed-function hardware, but then we got programmable shading, and then we started using compute shaders to feed the HW rasterizer, and then we started replacing the HW rasterizer itself with more compute (as in Nanite). The flexibility of doing whatever you want in software has gradually displaced the inflexible hardware units.

                                Meanwhile GPU raytracing was a purely software affair until quite recently when fixed-function raytracing hardware arrived. It's fast but also opaque and inflexible, only exposed through high-level driver interfaces which hide most of the details, so you have to let Jensen take the wheel. There's nothing stopping someone from going back to software RT of course but the performance of hardware RT is hard to pass up for now, so that's mostly the way things are going even if it does have annoying limitations.

                                • djmips 7 hours ago

                                  Why do you say 'albeit'? I think it's established that 'software rendering' can mean running on the GPU. That's what Octane is doing with CUDA in the comment you are replying to. But good callout on Nanite.

                                  • mrec 3 hours ago

                                    No good reason, I'm just very very old.

                              • delifue 3 hours ago

                                This reminds of me Makimoto’s Wave:

                                https://semiengineering.com/knowledge_centers/standards-laws...

                                There is a constant cycle between domain-specific hardware-hardcoded-algorithm design, and programmable flexible design.

                                • aarroyoc 9 hours ago

                                  Impressive post, so many details. I could only understand some parts of it, but I think this article will probably be a reference for future graphics API.

                                  I think it's fair to say that for most gamers, Vulkan/DX12 hasn't really been a net positive, the PSO problem affected many popular games and while Vulkan has been trying to improve, WebGPU is tricky as it has is roots on the first versions of Vulkan.

                                  Perhaps it was a bad idea to go all in to a low level API that exposes many details when the hardware underneath is evolving so fast. Maybe CUDA, as the post says in some places, with its more generic computing support is the right way after all.

                                  • alaingalvan 3 hours ago

                                    If you enjoyed history of GPUs section, there's a great book that goes into more detail by Jon Peddie titled "The History of the GPU - Steps to Invention", definitely worth a read.

                                    • SunlitCat 2 hours ago

                                      This article already feels like it’s on the right track. DirectX 11 was perfectly fine, and DirectX 12 is great if you really want total control over the hardware but I even remember some IHV saying that this level of control isn’t always a good thing.

                                      When you look at the DirectX 12 documentation and best-practice guides, you’re constantly warned that certain techniques may perform well on one GPU but poorly on another, and vice versa. That alone shows how fragile this approach can be.

                                      Which makes sense: GPU hardware keeps evolving and has become incredibly complex. Maybe graphics APIs should actually move further up the abstraction ladder again, to a point where you mainly upload models, textures, and a high-level description of what the scene and objects are supposed to do and how they relate to each other. The hardware (and its driver) could then decide what’s optimal and how to turn that into pixels on the screen.

                                      Yes, game engines and (to some extent) RHIs already do this, but having such an approach as a standardized, optional graphics API would be interesting. It would allow GPU vendors to adapt their drivers closely to their hardware, because they arguably know best what their hardware can do and how to do it efficiently.

                                      • canyp an hour ago

                                        > but I even remember some IHV saying that this level of control isn’t always a good thing.

                                        Because that control is only as good as you can master it, and not all game developers do well on that front. Just check out enhanced barriers in DX12 and all of the rules around them as an example. You almost need to train as a lawyer to digest that clusterfuck.

                                        > The hardware (and its driver) could then decide what’s optimal and how to turn that into pixels on the screen.

                                        We should go in the other direction: have a goddamn ISA you can target across architectures, like an x86 for GPUs (though ideally not that encumbered by licenses), and let people write code against it. Get rid of all the proprietary driver stack while you're at it.

                                      • reactordev 9 hours ago

                                        I miss Mantle. It had its quirks but you felt as if you were literally programming hardware using a pretty straight forward API. The most fun I’ve had programming was for the Xbox 360.

                                        • djmips 7 hours ago

                                          You know what else is good like that? The Switch graphics API - designed by Nvidia and Nintendo. Easily the most straightforward of the console graphics APIs

                                          • reactordev 6 hours ago

                                            Yes but it’s so underpowered. I want RTX 5090 performance with 16 cores.

                                        • wg0 6 hours ago

                                          Very well written but I can't understand much of this article.

                                          What would be one good primer to be able to comprehend all the design issues raised?

                                          • adrian17 5 hours ago

                                            IMO the minimum is to be able to read a “hello world / first triangle” example for any of the modern graphics APIs (OpenGL/WebGL doesn’t count, WebGPU does), and have a general understanding of each step performed (resource creation, pipeline setup, passing data to shaders, draws, synchronization). Also to understand where the pipeline explosion issue comes from.

                                            Bonus points if you then look at CUDA “hello world” and consider that it can do nontrivial work on the same hardware (sans fixed function accelerators) with much less boilerplate (and driver overhead).

                                            • arduinomancer 5 hours ago

                                              To be honest there isn't really one, a lot of these concepts are advanced even for graphics programmers

                                              • cmovq 4 hours ago
                                              • modeless 6 hours ago

                                                I don't understand this part:

                                                > Meshlet has no clear 1:1 lane to vertex mapping, there’s no straightforward way to run a partial mesh shader wave for selected triangles. This is the main reason mobile GPU vendors haven’t been keen to adapt the desktop centric mesh shader API designed by Nvidia and AMD. Vertex shaders are still important for mobile.

                                                I get that there's no mapping from vertex/triangle to tile until after the mesh shader runs. But even with vertex shaders there's also no mapping from vertex/triangle to tile until after the vertex shader runs. The binning of triangles to tiles has to happen after the vertex/mesh shader stage. So I don't understand why mesh shaders would be worse for mobile TBDR.

                                                I guess this is suggesting that TBDR implementations split the vertex shader into two parts, one that runs before binning and only calculates positions, and one that runs after and computes everything else. I guess this could be done but it sounds crazy to me, probably duplicating most of the work. And if that's the case why isn't there an extension allowing applications to explicitly separate position and attribute calculations for better efficiency? (Maybe there is?)

                                                Edit: I found docs on Intel's site about this. I think I understand now. https://www.intel.com/content/www/us/en/developer/articles/g...

                                                Yes, you have to execute the vertex shader twice, which is extra work. But if your main constraint is memory bandwidth, not FLOPS, then I guess it can be better to throw away the entire output of the vertex shader except the position, rather than save all the output in memory and read it back later during rasterization. At rasterization time when the vertex shader is executed again, you only shade the triangles that actually went into your tile, and the vertex shader outputs stay in local cache and never hit main memory. And this doesn't work with mesh shaders because you can't pick a subset of the mesh's triangles to shade.

                                                It does seem like there ought to be an extension to add separate position-only and attribute-only vertex shaders. But it wouldn't help the mesh shader situation.

                                                • yuriks 2 hours ago

                                                  I thought that the implication was that the shader compiler produces a second shader from the same source that went through a dead code elimination pass which maintains only the code necessary to calculate the position, ignoring other attributes.

                                                  • modeless 29 minutes ago

                                                    Sure, but that only goes so far, especially when users aren't writing their shaders with knowledge that this transform is going to be applied or any tools to verify that it's able to eliminate anything.

                                                • qingcharles 4 hours ago

                                                  I started my career writing software 3D renderers before switching to Direct3D in the later 90s. What I wonder is if all of this is going to just get completely washed away and made totally redundant by the incoming flood of hallucinated game rendering?

                                                  Will it be possible to hallucinate the frame of a game at a similar speed to rendering it with a mesh and textures?

                                                  We're already seeing the hybrid version of this where you render a lower res mesh and hallucinate the upscaled, more detailed, more realistic looking skin over the top.

                                                  I wouldn't want to be in the game engine business right now :/

                                                  • jsheard 4 hours ago

                                                    You can't really do a whole lot of inference in 16ms on consumer hardware. Not to say that inference isn't useful in realtime graphics, DLSS has proven itself well enough, but that's a very small model laser-targetted at one specific problem and even that takes a few milliseconds to do its thing. Fitting behemoth generative models into those time constraints seems like an uphill battle.

                                                    • 8n4vidtmkvmk 4 hours ago

                                                      I just assumed hallucinated rendering was a stepping stone to training AGIs or something. No one is actually seriously trying to build games that way, are they? Seems horribly inefficient at best, and incoherent at worst.

                                                    • Bengalilol 8 hours ago

                                                      After reading this article, I feel like I've witnessed a historic moment.

                                                      • bogwog 4 hours ago

                                                        Most of it went over my head, but there's so much knowledge and expertise on display here that it makes me proud that this person I've never met is out there proving that software development isn't entirely full of clowns.

                                                        • ehaliewicz2 23 minutes ago

                                                          Seb is incredibly passionate about games and graphics programming. You can find old posts of his on various forums, talking about tricks for programming the PS2, PS3, Xbox 360, etc etc. He regularly posts demos he's working on, progress clips of various engines, etc, on twitter, after staying in the same area for 3 decades.

                                                          I wish I still had this level of motivation :)

                                                      • overgard 4 hours ago

                                                        I'm kind of curious about something.. most of my graphics experience has been OpenGL or WebGL (tiny bit of Vulkan) or big engines like Unreal or Unity. I've noticed over the years the uptake of DX12 always seemed marginal though (a lot of things stayed on D3D11 for a really long time). Is Direct3D 12 super awful to work with or something? I know it requires more resource management than 11, but so does Vulkan which doesn't seem to have the same issue..

                                                        • canyp an hour ago

                                                          Most AAA titles are on DX12 now. ID is on Vulkan. E-sports titles remain largely on the DX11 camp.

                                                          What the modern APIs give you is less CPU driver overhead and new functionality like ray tracing. If you're not CPU-bound to begin with and don't need those new features, then there's not much of a reason to switch. The modern APIs require way more management than the prior ones; memory management, CPU-GPU synchronization, avoiding resource hazards, etc.

                                                          Also, many of those AAA games are also moving to UE5, which is basically DX12 under the hood (presumably it should have a Vulkan backend too, but I don't see it used much?)

                                                        • blakepelton 8 hours ago

                                                          Great post, it brings back a lot of memories. Two additional factors that designers of these APIs consider are:

                                                          * GPU virtualization (e.g., the D3D residency APIs), to allow many applications to share GPU resources (e.g., HBM).

                                                          * Undefined behavior: how easy is it for applications to accidentally or intentionally take a dependency on undefined behavior? This can make it harder to translate this new API to an even newer API in the future.

                                                          • klaussilveira 7 hours ago

                                                            NVIDIA's NVRHI has been my favorite abstraction layer over the complexity that modern APIs bring.

                                                            In particular, this fork: https://github.com/RobertBeckebans/nvrhi which adds some niceties and quality of life improvements.

                                                            • vegabook 6 hours ago

                                                              ironically, explaining that "we need a simpler API" takes a dense 69-page technical missive that would make the Kronos Vulkan tutorial blush.

                                                              • Pannoniae 5 hours ago

                                                                It's actually not that low-level! It doesn't really get into hardware specifics that much (other than showing what's possible across different HW) or stuff like what's optimal where.

                                                                And it's quite a bit simpler than what we have in the "modern" GPU APIs atm.

                                                                • mkoubaa 6 hours ago

                                                                  I don't understand why you think this is ironic

                                                                • ksec 9 hours ago

                                                                  I wonder why M$ stopped putting out new Direct X? Direct X Ultimate or 12.1 or 12.2 is largely the same as Direct X 12.

                                                                  Or has the use of Middleware like Unreal Engine largely made them irrelevant? Or should EPIC put out a new Graphics API proposal?

                                                                  • pjmlp 9 hours ago

                                                                    That has always been the case, it is mostly FOSS circles that argue about APIs.

                                                                    Game developers create a RHI (rendering hardware interface) like discussed on the article, and go on with game development.

                                                                    Because the greatest innovation thus far has been ray tracing and mesh shaders, and still they are largely ignored, so why keep on pushing forward?

                                                                    • djmips 7 hours ago

                                                                      I disagree that ray tracing and mesh shaders are largely ignored - at least within AAA game engines they are leaned on quite a lot. Particularly ray tracing.

                                                                    • reactordev 9 hours ago

                                                                      Both-ish.

                                                                      Yes, the centralization of engines to Unreal, Unity, etc makes it so there’s less interest in pushing the boundaries, they are still pushed just on the GPU side.

                                                                      From a CPU API perspective, it’s very close to just plain old buffer mapping and go. We would need a hardware shift that would add something more to the pipeline than what we currently do. Like when tesselation shaders came about from geometry shader practices.

                                                                      • djmips 7 hours ago

                                                                        The frontier of graphics APIs might be the consoles and they don't get a bump until the hardware gets a bump and the console hardware is a little bit behind.

                                                                      • awolven 3 hours ago

                                                                        Is this going to materialize into a "thing"?

                                                                        • jdashg 6 hours ago

                                                                          And the GPU API cycle of life and death continues!

                                                                          I was an only-half-joking champion of ditching vertex attrib bindings when we were drafting WebGPU and WGSL, because it's a really nice simplification, but it was felt that would be too much of a departure from existing APIs. (Spending too many of our "Innovation Tokens" on something that would cause dev friction in the beginning)

                                                                          In WGSL we tried (for a while?) to build language features as "sugar" when we could. You don't have to guess what order or scope a `for` loop uses when we just spec how it desugars into a simpler, more explicit (but more verbose) core form/dialect of the language.

                                                                          That said, this powerpoint-driven-development flex knocks this back a whole seriousness and earnestness tier and a half: > My prototype API fits in one screen: 150 lines of code. The blog post is titled “No Graphics API”. That’s obviously an impossible goal today, but we got close enough. WebGPU has a smaller feature set and features a ~2700 line API (Emscripten C header).

                                                                          Try to zoom out on the API and fit those *160* lines on one screen! My browser gives up at 30%, and I am still only seeing 127. This is just dishonesty, and we do not need more of this kind of puffery in the world.

                                                                          And yeah, it's shorter because it is a toy PoC, even if one I enjoyed seeing someone else's take on it. Among other things, the author pretty dishonestly elides the number of lines the enums would take up. (A texture/data format enum on one line? That's one whole additional Pinocchio right there!)

                                                                          I took WebGPU.webidl and did a quick pass through removing some of the biggest misses of this API (queries, timers, device loss, errors in general, shader introspection, feature detection) and some of the irrelevant parts (anything touching canvas, external textures), and immediately got it down to 241 declarations.

                                                                          This kind of dishonest puffery holds back an otherwise interesting article.

                                                                          • xyzsparetimexyz 6 hours ago

                                                                            Who cares about dev friction in the beginning? That was a bad choice.

                                                                          • greggman65 8 hours ago

                                                                            This seems tangentially related?

                                                                            https://github.com/google/toucan

                                                                            • xyzsparetimexyz 6 hours ago

                                                                              This needs an index and introduction. It's also not super interesting to people in industry? Like yeah, it'd be nice if bindless textures were part of the API so you didn't need to create that global descriptor set. It'd be nice if you just sample from pointers to textures similar to how dereferencing buffer pointers works.

                                                                              • henning 10 hours ago

                                                                                This looks very similar to the SDL3 GPU API and other RHI libraries that have been created at first glance.

                                                                                • cyber_kinetist an hour ago

                                                                                  If you look at the details you can clearly see SDL3_GPU is wildly different from this proposal, such as:

                                                                                  - It's not exposing raw GPU addresses, SDL3_GPU has buffer objects instead. Also you're much more limited with how you use buffers in SDL3 (ex. no coherent buffers, you're forced to use a transfer buffer if you want to do a CPU -> GPU upload)

                                                                                  - in SDL3_GPU synchronization is done automatically, without the user specifying barriers (helped by a technique called cycling: https://moonside.games/posts/sdl-gpu-concepts-cycling/),

                                                                                  - More modern features such as mesh shading are not exposed in SDL3_GPU, and keeps the traditional rendering pipeline as the main way to draw stuff. Also, bindless is a first class citizen in Aaltonen's proposal (and the main reason for the simplification of the API), while SDL3_GPU doesn't support it at all and instead opts for a traditional descriptor binding system.

                                                                                  • Scaevolus a few seconds ago

                                                                                    SDL3 is kind of the intersection of features found in DX12/Vulkan 1.0/Metal: if it's not easily supported in all of them, it's not in SDL3-- hence the lack of bindless support. That means you can run on nearly every device in the last 10-15 years.

                                                                                    This "no api" proposal requires hardware from the last 5-10 years :)

                                                                                • MaximilianEmel 9 hours ago

                                                                                  I wonder if Valve might put out their own graphics API for SteamOS.

                                                                                  • m-schuetz 9 hours ago

                                                                                    Valve seems to be substantially responsible for the mess that is Vulkan. They were one of its pioneers from what I heard when chatting with Vulkan people.

                                                                                    • jsheard 9 hours ago

                                                                                      There's plenty of blame to go around, but if any one faction is responsible for the Vulkan mess it's the mobile GPU vendors and Khronos' willingness to compromise for their sake at every turn. Huge amounts of API surface was dedicated to accommodating limitations that only existed on mobile architectures, and earlier versions of Vulkan insisted on doing things the mobile way even if you knew your software was only ever going to run on desktop.

                                                                                      Thankfully later versions have added escape hatches which bypass much of that unnecessary bureaucracy, but it was grim for a while, and all that early API cruft is still there to confuse newcomers.

                                                                                      • pjmlp 9 hours ago

                                                                                        Samsung and Google also have their share, see who does most of Vulkanised talks.

                                                                                    • thescriptkiddie 9 hours ago

                                                                                      the article talks a lot about PSOs but never defines the term

                                                                                      • flohofwoe 9 hours ago

                                                                                        "Pipeline State Objects" (immutable state objects which define most of the rendering state needed for a draw/dispatch call). Tbf, it's a very common term in rendering since around 2015 when the modern 3D APIs showed up.

                                                                                        • CrossVR 9 hours ago

                                                                                          PSOs are Pipeline State Objects, they encapsulate the entire state of the rendering pipeline.

                                                                                        • yieldcrv 9 hours ago

                                                                                          what level of performance improvements would this represent?

                                                                                          • Pannoniae 5 hours ago

                                                                                            Most of it has been said by the other replies and they're really good, adding a few things onto it:

                                                                                            - Would lead to reduced memory usage on the driver side due to eliminating all the statetracking for "legacy" APIs and all the PSO/shader duplication for the "modern" APIs (who doesn't like using less memory? won't show up on a microbenchmark but a reduced working set leads to globally increased performance in most cases, due to >cache hit%)

                                                                                            - A much reduced cost per API operation. I don't just mean drawcalls but everything else too. And allowing more asynchrony without the "here's 5 types of fences and barriers" kind of mess. As the article says, you can either choose between mostly implicit sync (OpenGL, DX11) and tracking all your resources yourself (Vulkan) then feeding all that data into the API which mostly ignores it. This one wouldn't really have an impact on speeding up existing applications but more like unlock new possibilities. For example massively improving scene variety with cheap drawcalls and doing more procedural objects/materials instead of the standard PBR pipeline. Yes, drawindirect and friends exist but they aren't exactly straightforward to use and require you to structure your problem in a specific way.

                                                                                            • vblanco 9 hours ago

                                                                                              There is no implementation of it but this is how i see it, at least comparing with how things with fully extensioned vulkan work, which uses a few similar mechanics.

                                                                                              Per-drawcall cost goes to nanosecond scale. Assuming you do drawcalls of course, this makes bindless and indirect rendering a bit easier so you could drop CPU cost to near-0 in a renderer.

                                                                                              It would also highly mitigate shader compiler hitches due to having a split pipeline instead of a monolythic one.

                                                                                              The simplification on barriers could improve performance a significant amount because currently, most engines that deal with Vulkan and DX12 need to keep track of individual texture layouts and transitions, and this completely removes such a thing.

                                                                                              • flohofwoe 9 hours ago

                                                                                                It's mostly not about performance, but about getting rid of legacy cruft that still exists in modern 3D APIs to support older GPU architectures.

                                                                                                • wbobeirne 7 hours ago

                                                                                                  Getting rid of cruft isn't really a goal in and of itself, it's a goal in service of other goals. If it's not about performance, what else would be accomplished?

                                                                                                  • flohofwoe 7 hours ago

                                                                                                    A simplified API means higher programmer productivity, higher robustness, simplified debugging and testing, and also less internal complexity in the driver. All this together may also result in slightly higher performance, but it's not the main goal. You might gain a couple hundred microseconds per frame as a side effect of the simpler code, but if your use case already perfectly fits the 'modern subset' of Vulkan or D3D12, the performance gains will be deep in 'diminishing returns area' and hardly noticeable in the frame rate. It's mostly about secondary effects by making the programmer's life easier on both sides of the API.

                                                                                                    The cost/compromise is dropping support for outdated GPUs.

                                                                                                • modeless 8 hours ago

                                                                                                  It would likely reduce or eliminate the "compiling shaders" step many games now have on first run after an update, and the stutters many games have as new objects or effects come on screen for the first time.

                                                                                                  • m-schuetz 9 hours ago

                                                                                                    Probably mostly about quality of life. Legacy graphics APIs like Vulkan have abysmal developer UX for no good reason.

                                                                                                    • Ono-Sendai 5 hours ago

                                                                                                      Relative to what? Relative to modern OpenGL with good driver support, not much probably. The big win is due to the simplified API, which is helpful for application developers and also driver writers.

                                                                                                    • ginko 8 hours ago

                                                                                                      I mean sure, this should be nice and easy.

                                                                                                      But then game/engine devs want to use the vertex shader producing a uv coordinate and a normal together with a pixel shader that only reads the uv coordinate (or neither for shadow mapping) and don't want to pay for the bandwidth of the unused vertex outputs (or the cost of calculating them).

                                                                                                      Or they want to be able to randomly enable any other pipeline stage like tessellation or geometry and the same shader should just work without any performance overhead.

                                                                                                      • Pannoniae 11 minutes ago

                                                                                                        A preprocessor step mostly solves this one. No one said that the shader source has to go into the GPU API 1:1.

                                                                                                        Basically do what most engines do - have preprocessor constants and use different paths based on what attributes you need.

                                                                                                        I also don't see how separated pipeline stages are against this - you already have this functionality in existing APIs where you can swap different stages individually. Some changes might need a fixup from the driver side, but nothing which can't be added in this proposed API's `gpuSetPipeline` implementation...