Copying nvdecoder output to DXGI surface

Could you show the code that copy multi plane data to a ID3D11 texture? I have the problem that same as this page.