UI: Add support for the indexed variant of GL_COLOR_WRITEMASK in the state tree