Skip to content

vk 0.12.0+1.4.365 — development release

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Nov 11:10
· 6 commits to main since this release

vk 0.12.0 — Unified fluent record construction

Development release, 2026-11-06. Cargo package vkrust 0.12.0+1.4.365,
Rust library/import name vk, Git tag v0.12.0, MIT licensed.
The +1.4.365 suffix identifies the pinned Vulkan header snapshot, not a
Vulkan 1.4 driver requirement.

Developer guide ·
Rust API reference ·
Realm

API and migration

Prefer new(...).set_*() throughout the native bindings and vk::mem.
All 125 public fields across 22 plain allocator records now have consuming,
chainable setters, covering requests, allocation/pool/relocation configuration,
callbacks, imported metadata, cache ranges, budgets and diagnostic snapshots.

use vk::mem as vma;

let options = vma::AllocationCreateInfo::new()
    .set_usage(vma::MemoryUsage::PreferHost)
    .set_host_access(vma::HostAccess::SequentialWrite)
    .set_required_flags(vk::MemoryPropertyFlags::HOST_VISIBLE_BIT)
    .set_policy(vma::AllocationPolicy::Automatic);

Default-backed records retain new() and their existing default values.
Three descriptors gain constructors that preserve required inputs:

  • AllocRequest::new(size, alignment, memory_type_bits) starts with empty
    required/preferred property flags.
  • ImportMemoryInfo::new(allocation_size, memory_type_bits) starts without
    resource-specific dedication. Import calls still require authoritative native
    payload/device metadata.
  • CacheRange::new(&allocation) describes the whole allocation from byte zero,
    without acquiring a mapping hold. Use set_offset and set_size for a range.

These are source-compatible additions. Setters retain borrowed pool, chain and
allocation lifetimes; they only change the named field, without allocating,
invoking callbacks or performing native work. Editing a returned snapshot changes
only that record, never allocator accounting or a live resource. Opaque identities,
validated scalar values and resource owners keep their checked operations.

Public fields, struct literals and Default remain available. A fluent chain
ends with ;; ..Default::default() belongs only to struct-update syntax.
Native layouts, Vulkan dispatch, allocation policies and destruction contracts
are unchanged. No migration is required for existing callers.

Evidence and limits

The implementation checkpoint passed 3,391 runtime tests/doctests, including
pool/chain lifetime rejection, selector validation, import accounting, cache
maintenance, relocation and snapshot-isolation checks. Formatting, strict
workspace/all-target/all-feature Clippy, strict rustdoc and native-name search
checks passed. A source audit verifies every public field in the 22 records has
its corresponding setter. The unchanged generator passed its workspace and
freshness checks.

Release CI gates publication on the exact sanitized snapshot's configured Linux,
macOS and Windows tests, extracted-crate/consumer proofs, pinned C ABI/PFN and
VMA comparisons, and explicit software-Vulkan profiles. The CI run and release
assets own the exact release rerun evidence.

No new sanitizer or physical-hardware qualification was run for these record-only
additions. The allocator remains Experimental. Broader platform, native relocation
copy, hardware, concurrency and comparative performance qualification remain
open; see the qualification report.