Zenith.NET.Views.Avalonia
1.1.0-alpha
dotnet add package Zenith.NET.Views.Avalonia --version 1.1.0-alpha
NuGet\Install-Package Zenith.NET.Views.Avalonia -Version 1.1.0-alpha
<PackageReference Include="Zenith.NET.Views.Avalonia" Version="1.1.0-alpha" />
<PackageVersion Include="Zenith.NET.Views.Avalonia" Version="1.1.0-alpha" />
<PackageReference Include="Zenith.NET.Views.Avalonia" />
paket add Zenith.NET.Views.Avalonia --version 1.1.0-alpha
#r "nuget: Zenith.NET.Views.Avalonia, 1.1.0-alpha"
#:package Zenith.NET.Views.Avalonia@1.1.0-alpha
#addin nuget:?package=Zenith.NET.Views.Avalonia&version=1.1.0-alpha&prerelease
#tool nuget:?package=Zenith.NET.Views.Avalonia&version=1.1.0-alpha&prerelease
<p align="center"> <img src="documents/images/Zenith.NET-Logo.svg" alt="Zenith.NET" width="378"> </p>
<p align="center"> A modern rendering hardware interface for .NET. </p>
<p align="center"> <a href="https://qian-o.github.io/Zenith.NET/docs/">Documentation</a> · <a href="https://qian-o.github.io/Zenith.NET/tutorials/">Tutorials</a> · <a href="https://qian-o.github.io/Zenith.NET/api/">API Reference</a> · <a href="https://www.nuget.org/packages?q=Zenith.NET">NuGet</a> </p>
Overview
Zenith.NET provides one C# API for graphics and compute across DirectX 12, Metal 4, and Vulkan 1.4. It gives applications explicit control over GPU resources, pipelines, command recording, synchronization, and presentation.
Build rasterization and compute workloads, access shader resources through bindless handles, and coordinate GPU work through queues, barriers, and timelines. Inline ray tracing and mesh shading are available through the same API when the device exposes the corresponding capabilities.
Getting Started
In a .NET 10 project, install the core package and the backend you want to use. For Vulkan:
dotnet add package Zenith.NET
dotnet add package Zenith.NET.Vulkan
Create a graphics context:
using Zenith.NET;
using Zenith.NET.Vulkan;
using GraphicsContext context = GraphicsContext.CreateVulkan(useValidationLayer: true);
Follow Project Setup to configure a complete application, then continue with Hello Triangle for the first rendering workload.
Packages
Choose packages by their role in your application. Add a graphics backend, then the compiler, extensions, or UI integration you need.
Core and Backends
| Package | Purpose |
|---|---|
Zenith.NET |
Shared graphics and compute API, resource types, and command interfaces. |
Zenith.NET.Compiler |
Compile Slang shaders for the selected graphics API. |
Zenith.NET.DirectX12 |
DirectX 12 backend. |
Zenith.NET.Metal |
Metal 4 backend. |
Zenith.NET.Vulkan |
Vulkan 1.4 backend. |
Extensions
| Package | Purpose |
|---|---|
Zenith.NET.Extensions.ImageSharp |
Load images into GPU textures with ImageSharp. |
Zenith.NET.Extensions.ImGui |
Dear ImGui rendering and input integration. |
Zenith.NET.Extensions.Skia |
SkiaSharp rendering with Zenith.NET textures. |
Zenith.NET.Extensions.Upscaling |
Spatial and temporal image upscaling. |
UI Integrations
| Package | Purpose |
|---|---|
Zenith.NET.Views |
Shared rendering-view interfaces and frame events. |
Zenith.NET.Views.Avalonia |
Avalonia rendering control. |
Zenith.NET.Views.Maui |
.NET MAUI rendering control. |
Zenith.NET.Views.WinForms |
Windows Forms rendering control. |
Zenith.NET.Views.WinUI |
WinUI 3 and Uno rendering control. |
Zenith.NET.Views.WPF |
WPF rendering control. |
See Views for integrating rendering into a UI application.
Documentation and Examples
- RHI Guide — resources, shaders, pipelines, commands, synchronization, and presentation.
- Tutorials — rendering and compute walkthroughs, from a triangle to ray tracing and mesh shading.
- API Reference — types and members.
- Experiments — sample applications and utilities in this repository.
License
Zenith.NET is licensed under the MIT License.
| 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
- Avalonia (>= 12.1.2)
- Zenith.NET.Views (>= 1.1.0-alpha)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.