Function PixelFormat.toMasks

Wraps SDL_PixelFormatEnumToMasks which gets the bit mask for all four channels of the dsdl2.PixelFormat

uint[4] toMasks() @trusted const;

Returns

an array of 4 bit masks for each channel (red, green, blue, and alpha)