about make_cudaPitchedPtr

I’m a little bit confused by make_cudaPitchedPtr. is there anyone can help me explain how to use that? what is the different with cudaMalloc3D?
thank you