Repository navigation
en rendering backends
中文 | English | Docs | Repository
This page covers the backend support matrix, how capability is queried, and the large-scene features that depend on backend capability. The rule is that capability comes from device queries, not from backend names.
| Backend | Platform | Status |
|---|---|---|
| DX12 | Windows | Supported runtime line |
| Vulkan 1.1 | Linux / WSL | Supported runtime line; the WSLg baseline is llvmpipe
|
| Metal | macOS | Native implementation and build target; unsupported on non-Apple platforms |
| Backend | Status |
|---|---|
| DX11 | Explicitly gated: startup reports it as unsupported and exits cleanly |
| OpenGL | Explicitly gated: on the current Windows build, startup reports it as unsupported and exits cleanly |
| Metal (non-Apple) | Unsupported, and not exposed through a null-device fallback |
These backends must not be used as delivery targets, and they are never silently substituted.
Every backend must report these capabilities explicitly, and both editor startup and runtime feature selection read them:
- Swapchain
- Offscreen framebuffer
- Framebuffer readback
- Framebuffer blit
- Depth blit
- UI texture handles
- Cubemaps
- MRT
- Compute queue
- Copy queue
- Explicit barriers
Capability bits are necessary but not sufficient: claiming a backend works also requires current smoke evidence and, for supported explicit backends, RenderDoc evidence.
-
DriverRendererAccessandDriverUIAccessare the supported entry points. - The immediate-style device wrapper is gone and must not be reintroduced as an extension point for new features.
- Renderer instantiation must go through a single selection entry point so backend choice and renderer choice stay centralized.
- Resource state transitions are declared by the FrameGraph rather than special-cased per backend.
The scene maintains a spatial index so visibility collection queries the index instead of scanning linearly. Index rebuilds use explicit telemetry, last-good data, dirty overlays, staged rebuilds, or clear budgets; a multi-frame synchronous rebuild that shows up as an unexplained stall is a defect.
The index supports serial, parallel, and full-scan comparison modes, and all three must produce identical visibility sets and sparse handle output.
- Static mesh LODs are built during import and the runtime only selects a level.
- LOD and HLOD decisions stay view local and never write shared state.
- HLOD children selected in the editor must remain inspectable.
- Transparent, order-dependent, skinned, and animated children do not participate in HLOD suppression until explicit proxy compatibility exists.
HZB occlusion and async/readback-assisted history are selected from RHIDevice::GetCapabilities() and texture format capabilities, not from backend-name guesses.
Conservative requirements:
- Invalid, stale, moved, representation-changed, ineligible-depth, or capability-gated history always stays visible.
- Ordinary occlusion frames introduce no synchronous readback, blocking map, or CPU/GPU fence wait.
- Unsupported capability combinations stay conservative and record the fallback reason.
Validation method and required evidence are in Visibility and Occlusion.
The residency system separates the interest set from the actually resident set, deduplicates requests, enforces CPU/GPU memory and upload budgets, and preserves frame-retirement pins. See Residency and Budgets.
- Use RenderDoc to inspect passes, resources, and state transitions; see Profiling and Graphics Debugging.
- Use Tracy for pass times and queue distribution on the same page.
- Use focused unit tests for FrameGraph dependencies and occlusion contracts; see Debugging and Testing.
- Rendering Overview puts these features back into the whole frame.
- Visibility and Occlusion covers the evidence requirements for HZB.
Nullus Engine
中文
- 认识 Nullus
- 安装与快速入门
- 使用编辑器
- 场景与对象
- Prefab 工作流
- 资产与内容管线
- 渲染、材质与光照
- 大场景与资源管理
- 游戏逻辑与脚本
- 用户界面
- 动画与角色
- 物理与交互
- 音频、特效与媒体
- AI 与联网
- 平台、构建与发布
- 扩展与引擎架构
- 调试、性能与质量
- 参考手册
- 示例与发展路线
English
- Getting to Know Nullus
- Install and Quick Start
- Using the Editor
- Scenes and Objects
- Prefab Workflow
- Assets and Content Pipeline
- Rendering, Materials, and Lighting
- Large Scenes and Resource Management
- Gameplay and Scripting
- User Interface
- Animation and Characters
- Physics and Interaction
- Audio, Visual Effects, and Media
- AI and Networking
- Platforms, Builds, and Releases
- Extending the Engine
- Debugging, Performance, and Quality
- Reference
- Examples and Roadmap