How to use a compute buffer in a vertex-fragment shader

I wasn’t finding any full examples of how to do this, everything with compute buffers seems to be about using them in compute shaders. So I created a simple example for anyone who’s also trying to figure things out:

I put my answer in the original post!