The PNG third edition specification includes a cICP chunk (colour independent code point) which allows images to be signalled with HDR characteristics including the transfer function and colour space. See how to work with cICP PNGs in Affinity Photo.