The feature size is pretty small for diffraction gratings. There are printer beds that will do the same to the bottom of your print as is done with this chocolate. None of the hobbyist models could get even close. The feature size is somewhere between 1 and 10 micrometers which is a couple of orders of magnitude finer detail than most 3d printers.
They are normally manufactured with other methods, but here’s a paper about printing them https://asmedigitalcollection.asme.org/IMECE/proceedings-abs...
So it’s possible, I’m sure they aren’t the only ones to try it.