Graphics API
EntropyPortal supports multiple graphics APIs through the Slang RHI (Render Hardware Interface) project. This abstraction layer allows the engine to run on Windows, macOS, and Linux without changing the core rendering code.
Supported APIs
Section titled “Supported APIs”| API | OS | Notes |
|---|---|---|
| Metal | macOS | Primary backend for development. High performance on Apple Silicon. |
| Vulkan | Windows, Linux | Cross-platform support. Used for validation layers and debug. |
| D3D12 | Windows | Native Windows support. Efficient for PC builds. |
RHI Abstraction
Section titled “RHI Abstraction”The engine does not make direct API calls (e.g., vkCmdDraw). Instead, it uses a high-level GPU Abstraction Layer that wraps the Slang RHI interface (rhi::IDevice, rhi::ICommandQueue).
Key Benefits
Section titled “Key Benefits”- Unified Shader Language: All shaders are written in pure Slang.
- Safety & Automation: The Abstraction Layer handles barriers, tracking, and object lifetimes automatically.
- Modern Design: Modeled after D3D12/Vulkan, supporting command buffers and async compute.