upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/lua-modding.md
diff options
context:
space:
mode:
authorZack <zmasi21@gmail.com>2026-11-30 07:21:11 -0800
committerZack <zmasi21@gmail.com>2026-11-30 07:47:55 -0800
commitde66085aa2d9228e9e1d3109004d9dac68b5fefb (patch)
treecf93d7b09368e89f0a983bf54883a3bd47611900 /docs/lua-modding.md
parentf9f3ec4c68de13f0fe167f7619072613ba77d1c8 (diff)
fix(d3d12): guard biased raw twins against sub-dword offsets and 32-bit wrap
Require dword alignment in settle_twin so sub-dword typed buffer views (such as odd R16 or unaligned R8 elements) do not hand misaligned byte offsets to 4-byte-aligned rawBufferLoad, rawBufferStore, atomic, or cbuffer accesses when LEONIDA_TWIN_BIAS is enabled. Clamp biased shader byte offsets past 0xFFFF_FFE0 to out-of-bounds 0xFFFF_FFF0 instead of wrapping 32-bit sentinel indices (u32::MAX * stride + field, x - 4 at x = 0) modulo 2^32 into the 16-byte prefix before the view, where loads read adjacent suballocation bytes and UAV writes corrupted them. Clear stale twin bias bits in HostHeap::constant_raw_at when recycling dynamic slots, publish stride bias words before twin descriptors in mirror and make_listed, and bound twin_window byte spans to u32. Fixes #2702 AI-assisted.
Diffstat (limited to 'docs/lua-modding.md')
0 files changed, 0 insertions, 0 deletions