Arcodiant.Vulkan
0.3.0
See the version list below for details.
dotnet add package Arcodiant.Vulkan --version 0.3.0
NuGet\Install-Package Arcodiant.Vulkan -Version 0.3.0
<PackageReference Include="Arcodiant.Vulkan" Version="0.3.0" />
<PackageVersion Include="Arcodiant.Vulkan" Version="0.3.0" />
<PackageReference Include="Arcodiant.Vulkan" />
paket add Arcodiant.Vulkan --version 0.3.0
#r "nuget: Arcodiant.Vulkan, 0.3.0"
#:package Arcodiant.Vulkan@0.3.0
#addin nuget:?package=Arcodiant.Vulkan&version=0.3.0
#tool nuget:?package=Arcodiant.Vulkan&version=0.3.0
Arcodiant.Vulkan
A thin C# binding for Vulkan and GLFW 3.4, for .NET 10.
- Interop types are generated from the Vulkan registry (
vk.xml); a hand-written object API sits on top:Instance,PhysicalDevice,Device,Queue,CommandBuffer,Swapchain,Image,Pipelineand the rest, plusGlfwfor windows, input, monitors and gamepads. - Covers what a modern renderer needs: dynamic rendering, extended dynamic state, descriptor indexing, buffer device address, timestamp queries, acceleration structures and ray-tracing pipelines, and the debug-utils messenger.
- Supported consumer platform:
win-x64. The package carries the GLFW 3.4 native forwin-x64(runtimes/win-x64/native/glfw.dll), which NuGet copies into your output. The Vulkan loader (vulkan-1.dll) comes from the GPU driver or the Vulkan SDK. linux-x64GLFW is bundled for Linux test hosts only (runtimes/linux-x64/native/libglfw.so.3, withlibvulkan.so.1from the system). Linux is not a supported consumer platform. macOS (MoltenVK) is probed but untested, and needs a system GLFW.
Getting started
using Vulkan;
Glfw.Init();
var instance = Instance.Create("My app", Glfw.GetRequiredInstanceExtensions(), []);
var physicalDevice = instance.EnumeratePhysicalDevices()[0];
// physicalDevice.CreateDevice(["VK_KHR_swapchain"], features, new DeviceExtensions { ... }), ...
Pass chained feature structs through the per-method XxxExtensions struct (for example
physicalDevice.CreateDevice(deviceExtensionNames, features, new DeviceExtensions { DynamicRendering = new() { DynamicRendering = true } }));
the binding stamps SType and builds the pNext chain.
Your own GLFW calls
If your assembly declares its own DllImport("glfw") for a function Glfw doesn't wrap, call
Vulkan.GlfwNative.RegisterResolver(typeof(SomeTypeInYourAssembly).Assembly) once before the first
such call, or it won't find libglfw.so.3 on Linux. An assembly with a resolver of its own calls
GlfwNative.Resolve(name) from it instead.
Versioning
The binding is 0.x: a minor release may break the API, and the CHANGELOG.md packed alongside this README names every break.
License
MIT. Bundled third-party material (GLFW, zlib License) is listed in THIRD-PARTY-NOTICES.md.
| 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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Arcodiant.Vulkan:
| Package | Downloads |
|---|---|
|
Arcodiant.Empyrean.Graphics
Vulkan rendering for the Empyrean engine: window, cameras, meshes, sprites, lighting, materials, model and texture loading, and HUD text. |
GitHub repositories
This package is not used by any popular GitHub repositories.