# bend-vulkan Native Vulkan bindings for Bend, with explicit GPU memory, command recording, synchronization, indexed graphics, and optional X11 presentation on 64-bit Linux. This is `bend-vulkan-library@0.1.0.1`, built from [bend-vulkan revision 4b68808](https://github.com/aivv73/bend-vulkan/tree/4b688089479a72daba59c0b8186544fd722d3ac2). It requires **Bend 2.0.40** and bundles `U64` from [aivv73/bend-collections revision 32526a9](https://github.com/aivv73/bend-collections/tree/32526a9a3d82ffc988bf4a122f8c37240a70a87b). ## Import the library ```bend import bend-vulkan-library@0.1.0.1/Vulkan.bend as V import bend-vulkan-library@0.1.0.1/src/core.bend as Core import bend-vulkan-library@0.1.0.1/src/constants.bend as vk import bend-vulkan-library@0.1.0.1/src/upload.bend as Upload import bend-vulkan-library@0.1.0.1/deps/bend-collections/src/math/u64.bend as W ``` Build applications with `bend app.bend -o app`, then run `./app`. Native builds require Clang, Vulkan development headers, `libvulkan.so.1`, and a Vulkan driver. Window applications also require X11 development headers and an X11 display. The JavaScript backend reports a native-build-required error. ## Run a published example Save this as `example.bend`: ```bend import Base import bend-vulkan-library@0.1.0.1/examples/buffer_roundtrip.bend as Demo def main() -> IO(Unit): Demo.main() ``` Build it with `bend example.bend -o example` and run `./example`. Expected output: `Host roundtrip and GPU buffer fill verified`. The package also includes discovery, image readback, indexed offscreen, and window examples, plus the pure `LAWS.bend` and `PROOF.bend` files. See the [API reference](https://github.com/aivv73/bend-vulkan/blob/4b688089479a72daba59c0b8186544fd722d3ac2/docs/api.md) for supported operations and resource lifetime rules. ## Licenses The bend-vulkan files retain the previous BendHub release's MIT-0 license. The bundled collections module retains its MIT license and copyright notice in `deps/bend-collections/src/math/LICENSE`.