public static extern cudaError cudaMalloc3D(ref cudaPitchedPtr pitchDevPtr, cudaExtent extent);
public static extern cudaError cudaMalloc3DArray(ref cudaArray arrayPtr, ref cudaChannelFormatDesc desc, cudaExtent extent);
public static extern cudaError cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent);