RHI Guide
Use this guide to learn the Zenith.NET programming model. It covers the C# objects and workflows used to create resources, record GPU work, and present results.
Fundamentals
Start here if you are new to Zenith.NET:
- Runtime introduces the graphics context, capabilities, queues, and object lifetime.
- Commands shows how to record and submit work.
- Synchronization explains barriers, texture transitions, and queue dependencies.
- Shaders shows how to compile Slang entry points and create shader objects.
- Bindless Resources shows how shaders access resources through handles.
- Queries shows how to collect visibility results and measure GPU work.
Resources
- Heaps covers placed resources, allocation requirements, offsets, and lifetime.
- Buffers covers creation, data transfer, mapping, and views.
- Textures covers creation, views, uploads, layouts, resolves, and samplers.
Workloads
- Rasterization covers graphics pipelines, render passes, and draw commands.
- Compute covers compute pipelines and dispatch commands.
- Ray Tracing covers acceleration structures and inline ray queries.
- Mesh Shading covers mesh shading pipelines and dispatch commands.
Presentation
- Swap Chains shows how to render to a window and present a frame.
- Views shows how to render through supported .NET UI controls.
Follow the Tutorials to build complete examples. Use the API Reference for exact types and signatures.