tycho_vulkan

    Pure-MoonBit Vulkan 1.4 bindings generated from Khronos vk.xml (zero user C)

    vulkan
    graphics
    gpu
    ffi
    tycho
    Download zip
    Version
    0.8.0
    License
    Apache-2.0
    Last updated
    3 days ago
    Downloads
    81

    No dependencies

    #laplaceliu/tycho_vulkan

    Pure-MoonBit Vulkan bindings generated directly from Khronos vk.xml (Vulkan-Headers 1.4.363).

    1.4.363 is the Khronos header/spec revision used at generation time, not a requirement on the machine that consumes this package: headers are vendored in-package and every command is resolved at runtime via vkGetInstanceProcAddr / vkGetDeviceProcAddr, so any Vulkan loader ≥ 1.0 works and no LunarG Vulkan SDK is needed. Applications built on laplaceliu/tycho additionally need a Vulkan 1.3+ driver (dynamic rendering + synchronization2).

    • Zero user C: write Vulkan applications in 100% pure MoonBit — all struct/union accessors, three-layer FuncRef dispatch tables (Entry / InstanceFn / DeviceFn), pNext pointer chaining, FuncRef callbacks, and GC array pinning live inside this module.
    • 100% Windows & Linux coverage: binds all 813 desktop commands in vk.xml including all 15 vulkan_win32.h Win32/external-memory/fence/surface commands and 19 Win32 structs, with 100% of host-reachable commands verified live on Windows (including vkGetMemoryWin32HandlePropertiesKHR via examples/dx12/vulkan-interop and Win32 external memory/semaphore interop via examples/vulkan/win32-interop).
    • Self-contained for mooncakes.io: Vulkan 1.4.363 C headers are vendored inside include/vulkan/ and included relatively, requiring no external -I flags or Vulkan SDK installation for downstream users.
    • Minimal native dependency: zero link-time flags (-lvulkan / vulkan-1.lib are not needed; the Vulkan loader is resolved at runtime via dlopen / LoadLibraryA).
    • Compile-time ABI audited: generated stubs include thousands of static-assert checks verifying every struct field and command scalar parameter width against MoonBit types.

    #Usage

    // moon.pkg
    import {
    "laplaceliu/tycho_vulkan" @vk,
    }

    No cc-link-flags are required on Linux, Windows, or macOS.

    ⚠️ Package is too large to be displayed

    This package contains over 7381 items.