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>
- Input: SDL3-backed PollPadAsXInput bridges DInput/HIDAPI gamepads
past the XInput 4-pad cap. Exposed via INP_SdlBridge for use by
callers that need to enumerate all connected pads.
- Render: VIEWPORT_TYPE_GRID_CELL enum + StateSetViewportRect(x,y,w,h)
for parametric N-player cell rects. The pre-built lib's enum-based
StateSetViewport leaves the D3D viewport stack-uninitialized in its
default case, so the grid-cell path takes a direct rect to avoid
the 0xCC fill -> RSSetViewports validation error.
- CMake: SDL3 static link wiring + Windows build helpers
(build_libs.bat, configure_only.bat).
Used by: MrTheShy/MinecraftConsoles auth branch (8-player splitscreen).
* feat: CMakeSettings.json
* chore: remove visual studio stuff
chore: move .clang-format to main directory
* feat: new file structure, easier to implement as a submodule within existing projects
* chore: we actually include some code now...
* chore: remove prebuilt libraries (oops)
* feat: new shader building script using cmake
* chore: add debug postfix specifier
* fix: forgot that windows builds use 4J_Render_PC for the render library
* fix: didn't add the output directory (where shaders are saved to) to the include directories of 4J_Render