|
|
|
|
|
by grg0
6 days ago
|
|
As far as I know, desktop graphics APIs/drivers don't allow you to straight up load shaders in assembly; they have you go through IL and they compile that down to the GPU's ISA. You would have to bypass the user-mode driver at the very least. 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.