Is there some way to get 16 bits per sample image raw data to a new Layer?

After having a deep look into the plugin API, I can’t see any way to get raw byte data with 16 bits per sample (RGB48) loaded into a new Layer.

Is this possible at all?

Hi! Do you mean copying an existing layer, or importing it from a file?

GIMP uses GEGL and babl for its color engine and processing, so you’d just create a babl format like “RGB u16” and use that for the format when loading the raw data into a GeglBuffer. Babl references here: https://gegl.org/babl/