ebdb6c313d
Adds per-context lastXxxStateKey + lastBlendFactor tracking so we skip redundant ID3D11* CreateState/Bind cycles. Pre-allocates Clear() state objects to avoid 3 Create + 3 Release per Clear call. Also adds lastColour/lastAlphaTestRef/last*TextureIdx caches to skip cbuffer uploads when values unchanged from last bind. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>