Saving and loading OptiX::Buffers

Is there any way I can easily save a buffer’s data onto a file in my hard drive that is not a PNG, and then load it back up into my code? I’d rather not use any additional library for PNG parsing

Thanks in advance

I don’t see the problem. You map your output or input_output buffer and have a host pointer to its memory. You can write that to disk any way you like.
If you need it as an image format to open it in other applications and it’s an RGB8 or RGBA8 format, the TGA file format offers a simple uncompressed binary representation.