How nvidiagameworks/nri works
Main Components
a. Core Layer:
• Base interfaces from Include/NRI.h
• Core functionality components (Device, CommandBuffer, etc.)
b. Backend Implementations (arrange as parallel modules):
• Vulkan Backend (Source/VK)
• DirectX 12 Backend (Source/D3D12)
• DirectX 11 Backend (Source/D3D11)
• None/Dummy Backend (Source/NONE)
c. Extensions Layer (arrange as a top layer):
• Device Creation (NRIDeviceCreation)
• Helper Interface (NRIHelper)
• Low Latency Support (NRILowLatency)
• Mesh Shader Support (NRIMeshShader)
• Ray Tracing Support (NRIRayTracing)
• Resource Allocator (NRIResourceAllocator)
• Streamer (NRIStreamer)
• SwapChain Support (NRISwapChain)
d. Validation Layer:
• As a wrapper around the core components
• Validation implementations from Source/Validation
Relationships and Interactions
• Extension interfaces connecting to the core
• Backend implementations implementing the core interface
• Validation layer wrapping around core components
• Data flow between components (command submission, resource management)
Important Elements to Highlight
a. Core Abstractions:
• Device
• CommandBuffer/Queue
• Resources (Buffer, Texture)
• Pipeline Management
• Memory Management
• Descriptor Management
b. Cross-Platform Support:
• Windows
• Linux
• MacOS (through MoltenVK)
• Android
Implementation Details
• Shared components (Source/Shared)
• Extension points
• Validation layer coverage
• Memory management flow