A modern rendering hardware interface for .NET.
One consistent C# API for graphics and compute across DirectX 12, Metal 4, and Vulkan 1.4.
Zenith.NET provides a consistent C# API for resources, pipelines, command recording, synchronization, and presentation across DirectX 12, Metal 4, and Vulkan 1.4.
The RHI exposes rasterization, compute, and indirect commands. Inline Ray Tracing and mesh shading are optional; check Capabilities.RayTracingSupported and Capabilities.MeshShadingSupported before use. Bindless resource handles expose shader resources, while queues, barriers, and texture layouts express ordering and access dependencies.
Install the core package and one graphics API package:
dotnet add package Zenith.NET
dotnet add package Zenith.NET.VulkanCreate a graphics context in C#:
using Zenith.NET;
using Zenith.NET.Vulkan;
using GraphicsContext context = GraphicsContext.CreateVulkan(useValidationLayer: true);Continue with the RHI Guide or build the examples in the Tutorials.
| DirectX 12 | Metal 4 | Vulkan 1.4 | |
|---|---|---|---|
| Windows | Yes | Yes | |
| Apple | Yes | Yes | |
| Android | Yes | ||
| Linux | Yes |