Wolfgang Engel's "Pixel & Vertexshader" book looks quite nice and it has samples in it.