upvote
> TIL that consoles do allow this and it makes sense; why waste time compiling the shaders at runtime when you already know what the target hardware is.

I guess that's one of the tricks the Steam Deck does: shaders compiled once and cached on the Steam servers for distribution in the assets instead of being compiled on the user's machine.

reply
Not only Deck, Steam does it on desktop too. They have a collection of precompiled shaders for the most common GPUs and driver versions. Now that I think about it, the last time I had to wait for shader compilation was before switching my gaming rig to Linux. The clanker asserts that it's also important for Proton performance, so maybe it's on by default on Linux and off on Windows? Or maybe they brought it to desktop Steam as I did the switch.
reply
There's a shader binary extension that's supposed to be for compute shaders and pipeline state objects previously compile on that system/driver that is possible to reuse with a little elbow grease.
reply
This would be surprising because it's the primary method of running compute workloads on GPU!
reply
Wait using what API? Vulcan compute shaders are based on sending SPIR-V to the driver, I believe DirectX's GPU compute is the same. Does CUDA or ROCm have you feed the GPU machine code directly?
reply