Fix documentation and input layout parameter offset calculation.