AFAIK this are all similar but different shader languages… but someone like a “translation”… was lready done… see:
Or maybe this…