Simple Texture example

Hi all,
I try to implement a simple matrix multiplication using texture.
This multiplication is just an example to learn how textures work.
Can you give me small code to build a texture and to get on of its value?
Thank you,

Check out these slides, they have snippets of code that sets up textures:…s%20interop.pdf