Make getStencilBits static

Made getStencilBits static so it can be called.