Files
osyandClaude Opus 5.5 66e27f3759 native: take the embedder contract, events and shm from directx-native
dxmt_native_event.c, the anonymous-shm allocator and the 'DMTX' handle
struct were hand-kept copies of what d3dmetal-native and the Neptune
render server also carry.  They now come from directx-native (statically
linked subproject, pinned in subprojects/directx-native.wrap):

- GetSharedHandle/OpenSharedResource carry a dxn_shared_texture (one
  linear plane), validated with dxn_shared_check.  Lockstep ABI break:
  'DMTX' v2 is gone.
- The events are dxn_event_*; the SetEventOnCompletion block pins the
  event with dxn_event_duplicate instead of a private core ref, and
  dup_fd hands out a close-on-exec fd.  The exports shrink to what an
  embedder uses (create / close / dup_fd) plus wait for native apps;
  dxmt_event_signal and dxmt_event_clear, which nothing called, are gone.
- The shm texture backing is dxn_shm_create/dxn_shm_page_align.
- dxmt_native_abi_version reports DXN_ABI_VERSION for the render
  server's load-time check.
- directx-native's diagnostics go to the dxmt Logger.

tests/native d3d11_test: 177 pass, 0 fail.  Windows VM (DXMT): verify
PASS, 61 shared exports/opens and 0 rejected descriptors, Fire Strike
GT1 VALID 48.87 fps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 18:20:07 -07:00
..