dasVulkan documentation

Part of the daslang ecosystem. See also the daslang documentation and daslang.io.

dasVulkan is the daslang binding for Vulkan, generated from the Khronos vk.xml registry. It ships two layers:

  • vulkan — the raw binding: the full Vulkan API surface (core + extensions), generated as a daslang C++ module dispatching through volk. It mirrors the C API 1:1 and is not re-documented here — consult the Vulkan specification for those symbols.

  • vulkan_boost — the ergonomic layer documented on this site: RAII-owning handle wrappers with finalize, idiomatic structs (array<T> instead of count+pointer pairs, auto-filled sType), named arguments with defaults, and block-bracketing helpers.

Source code: https://github.com/borisbat/dasVulkan

Issues: https://github.com/borisbat/dasVulkan/issues

Install

Via daspkg:

daslang utils/daspkg/main.das -- install github.com/borisbat/dasVulkan

Or add to your project’s .das_package:

[export]
def dependencies(version : string) {
    require_package("github.com/borisbat/dasVulkan")
}

Then run daspkg install.

Building the module needs no Vulkan SDK — the vendored Vulkan-Headers and volk’s runtime loading cover it. A real GPU or Mesa lavapipe (software ICD, used in CI) provides the runtime.