fn restart_session(
gpu: &mut GpuCapture,
region: NVFBC_BOX,
size: NVFBC_SIZE,
with_cursor: bool,
) -> Result<(), NvfbcError>Expand description
Restart the capture session at a new region, size, or cursor mode, and bring NVENC to the same geometry. The device pointer the driver returns afterwards is a new one, which the encoder’s registration follows on the next frame.