[Compute Shader] How to set an input buffer?

I have a texture I want to input into a compute shader, could someone please explain to me what I must do to get the texture input into the shader? (please give me a simple example if possible).

http://docs.unity3d.com/Documentation/Manual/ComputeShaders.html

Enjoy