Reputation: 157
To understand in general how GPU's cache support work, I read some information and understood this:
CPU compiles shader and transmit resulting code of shader to GPU to execute and also save it to the disk.
If necessary to execute the same shader, GPU get it saved binary code directly from the disk.
if I understood correctly, I don't understand why CPU compiles shader each time.
Unless the shader is not compiled before runtime (that is during development)?
Upvotes: 1
Views: 1334
Reputation: 798606
Not all GPUs use the same instruction set. Having only the binary on disk means that the sets of GPU architectures that can be used with that software will be fixed forever.
Upvotes: 2