pex-context
pex-context copied to clipboard
Cache properties on state sub-object
Right now we cache state properties on
- state
pipeline.blend !== state.blend
- defaultState
if (self.defaultState.viewport[2] !== gl.drawingBufferWidth
- state.pipeline
if (pipeline.colorMask[0] !== state.pipeline.colorMask[0]