1.8 KiB
UI texture addressing, 2026-10-18
Scope: CGraphicExpandedImageInstance::OnRender / SetRenderingRect and the native sampler path. This does not establish full HUD or Windows visual parity.
The full reference ExpandedImageInstance unit was read alongside its platform counterpart. The geometry and UV arithmetic remain unchanged. Reference EterLib/StateManager.cpp SetDefaultState sets stage U/V to D3DTADDRESS_WRAP; the runtime ui.py Board.SetSize expands the texture coordinates to repeat a background. The former native UI descriptor unconditionally used CLAMP_TO_EDGE, producing stretched final-row/column stripes.
UIRenderAddImageNamed now carries stage-0 U/V from CStateManager. Vulkan reuses its D3D sampler cache for non-clamp addressing, preserving independent wrap/mirror/clamp, mip-zero UI filtering and point/linear choice. Direct platform commands retain their previous clamp defaults; the second-stage mask retains clamp. Capture version 11 serializes U/V; version 1–10 remains readable with the old UI clamp behavior.
Validation:
- port_grp_resource_test: repeated UV extent, independent wrap/mirror state and explicit clamp.
- host_ui_sampler_capture_test: version 11 roundtrip and version 10 backward compatibility.
- host.ui_quality regression unchanged.
ctest --test-dir build/native -R '^(host.ui_sampler_capture|port.grp_resource|host.ui_quality)$' --output-on-failure: 3 passed.- Native macOS sbtest client: the same AVA2 pickup panel lost its stretched stripes and renders the repeated stone texture. Evidence: build/parity-acceptance-20261018/before-ui-address.png and after-ui-address.png, captured through CUA. The icon for persisted affect 705 also renders.
No Android visual acceptance or Windows pixel comparison was performed in this round. Aggregate UI contracts remain PARTIAL.