The doc explicitly mentions it.
Quote:
In pass 1 and 2, use the -x265-params pass=1 and -x265-params pass=2 options, respectively.
[...]
For libx265, the -pass option (that you would use for libx264) is not applicable.
|
https://trac.ffmpeg.org/wiki/Encode/H.265