string getMask(int comp) { string[] val = new string[] { "r", "g", "b", "a" }; int x = (Swizzle >> comp * 2) & 0x3; return val [x]; }