Adamantium.Vulkan
1.0.0
Prefix Reserved
Depends on QuantumBinding.Utils 2.x, which handed native code an unzeroed
buffer. Fixed by the dependency bump in this package's newer version.
See the version list below for details.
dotnet add package Adamantium.Vulkan --version 1.0.0
NuGet\Install-Package Adamantium.Vulkan -Version 1.0.0
<PackageReference Include="Adamantium.Vulkan" Version="1.0.0" />
<PackageVersion Include="Adamantium.Vulkan" Version="1.0.0" />
<PackageReference Include="Adamantium.Vulkan" />
paket add Adamantium.Vulkan --version 1.0.0
#r "nuget: Adamantium.Vulkan, 1.0.0"
#:package Adamantium.Vulkan@1.0.0
#addin nuget:?package=Adamantium.Vulkan&version=1.0.0
#tool nuget:?package=Adamantium.Vulkan&version=1.0.0
AdamantiumVulkan
C# bindings to the Vulkan API, generated from the Khronos registry, with hand-written wrappers over the generated interop so that calling Vulkan reads as C# rather than as marshalling.
The Vulkan bindings come from vk.xml and video.xml - the registry Khronos publishes as the specification's own
machine-readable form - so extensions, aliases, enum extensions and the structure chains arrive as the registry
defines them rather than as a parse of the headers happened to see them.
The other three packages have no registry to read from, so their bindings are generated from the C headers by QuantumBinding, which parses through Clang's own front end rather than a bespoke parser: macros, bitfields, anonymous unions and platform conditionals mean there what they mean to a C compiler.
These packages are what the Adamantium engine is built on, but they carry no dependency on it and can be used on their own.
Packages
| Package | What it is |
|---|---|
Adamantium.Vulkan |
The bindings themselves: structures, handles, enums and commands |
Adamantium.Vulkan.Loader |
Finds the Vulkan loader at run time and resolves its entry points |
Adamantium.Vulkan.Slang |
Bindings to the Slang shader compiler, shipping the compiler itself |
Adamantium.Vulkan.Spirv |
Bindings to SPIRV-Cross, for reading back what a compiled shader declares |
dotnet add package Adamantium.Vulkan
dotnet add package Adamantium.Vulkan.Loader
Requirements
- .NET 10 or later. The shader packages also target
netstandard2.0. - x64. The projects build for that platform only; other architectures have not been tried.
- A Vulkan driver on the machine at run time. No SDK is needed to build: the loader resolves the driver's own library, and the Slang package carries the shader compiler with it.
Why the loader is a separate package
Adamantium.Vulkan.Loader resolves Vulkan at run time instead of linking an import library at build time. An
application therefore binds to whichever Vulkan the machine actually has, and a machine without one fails with an
error you can catch rather than refusing to start.
Third-party binaries
The Slang and SPIRV-Cross packages ship compiled binaries of projects that are not ours - among them the Slang compiler (Apache-2.0 with the LLVM exception, itself carrying glslang, SPIRV-Tools, LLVM, mimalloc and lz4), SPIRV-Cross and SPIRV-Tools (Apache-2.0, Khronos). Every one of those licences is permissive, and the notices travel with the binaries in THIRD-PARTY-NOTICES.md.
Nothing here derives from the Vulkan logo or any other Khronos trademark.
Building from source
git clone https://github.com/QuantumDeveloper/AdamantiumVulkan
cd AdamantiumVulkan
dotnet build Adamantium.Vulkan/Adamantium.Vulkan.csproj -c Release -p:Platform=x64
The four published projects build from a clone on their own. Regenerating the bindings - which is only needed when
the Vulkan registry moves - additionally requires
QuantumBinding cloned beside this repository, because
Adamantium.Vulkan.Generator uses it directly:
<parent>/
AdamantiumVulkan/
QuantumBinding/
Status
In use, and under active development alongside the engine that depends on it. The API follows the Vulkan registry, so it changes when the registry does.
Licence
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- QuantumBinding.Utils (>= 2.0.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Adamantium.Vulkan:
| Package | Downloads |
|---|---|
|
Adamantium.Imaging
Image codecs of the Adamantium engine - PNG and APNG, JPEG, GIF, BMP, TGA, TIFF, ICO, DDS - with mipmaps, format conversion and palette quantizers. |
|
|
Adamantium.Graphics.Core
Graphics abstractions of the Adamantium engine: devices, presenters, buffers, textures, vertex layouts, meshes and the effects framework, apart from their Vulkan implementation. |
|
|
Adamantium.Graphics
The Vulkan renderer of the Adamantium engine: graphics device, swap chains, memory allocation, pipelines, effects, textures and text. |
|
|
Adamantium.UI
Adamantium UI: a .NET UI framework for desktop applications on its own Vulkan renderer - controls up to docking, a ribbon, a tree data grid and an infinite canvas; AUML markup compiled to C#; styles and live themes; MVVM and navigation; and a 3D scene as an element of the markup. The package to reference: it brings the controls, the themes, the AUML code generator and MVVM with its generator. |
GitHub repositories
This package is not used by any popular GitHub repositories.