Skip to content

Phase 5 tranche 2: luminal-vgd-ffi C ABI staticlib#10

Merged
NorthernLights merged 1 commit into
mainfrom
feat/phase5-ffi
Jul 19, 2026
Merged

Phase 5 tranche 2: luminal-vgd-ffi C ABI staticlib#10
NorthernLights merged 1 commit into
mainfrom
feat/phase5-ffi

Conversation

@NorthernLights

Copy link
Copy Markdown
Member

Summary

  • New luminal-vgd-ffi staticlib wrapping luminal-vgd-host for LuminalShine's C++: device open/handshake/create/ping/destroy, ring open/status/claim/release, vgd_slot_texture_name composition. Panic-proof entry points; 0 / negative proto err / VGD_ERR_IO convention.
  • cbindgen-generated include/luminal_vgd.h (committed, regenerated each build) with the link line documented.
  • Target x86_64-pc-windows-gnullvm (UCRT) matching LuminalShine's MSYS2 UCRT64 clang; BUILDING.md documents build+link.

Verification

Link-tested into a UCRT64 clang++ binary (-lcfgmgr32 -lws2_32 -luserenv -lntdll -lbcrypt): in-process Rust execution verified (texture-name composition exact), graceful null on unelevated device open. 11/11 workspace test targets green; clippy silent.

🤖 Generated with Claude Code

New staticlib crate wrapping luminal-vgd-host for the C++ side:
device open/handshake/create/ping/destroy, ring open/status/claim/
release, and slot_texture_name composition (texture access itself stays
in C++ via OpenSharedResourceByName + bounded keyed-mutex acquire). All
entry points are panic-proof; 0 / negative proto err / VGD_ERR_IO
convention. Header generated by cbindgen into include/luminal_vgd.h
(committed, regenerated every build).

Built for x86_64-pc-windows-gnullvm (UCRT) to match LuminalShine's
MSYS2 UCRT64 clang; link-verified into a UCRT64 C++ binary
(-lcfgmgr32 -lws2_32 -luserenv -lntdll -lbcrypt) with in-process
execution checks. docs/BUILDING.md documents the build+link line.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NorthernLights
NorthernLights merged commit e5b3e0d into main Jul 19, 2026
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants