Engine → RHI
device.h
The graphics device. A device owns one nvrhi::IDevice created over the requested backend; conjure_renderer records into it through native_device(). NVRHI itself stays in engine/src: this header forward-declares nvrhi::IDevice only.
Structs
Classes
Enumerations
null_fault
enum class null_fault : u8 {
NONE = 0,
WAIT_IDLE,
PRESENT,
ACQUIRE_OUT_OF_DATE,
PRESENT_FAILED,
GRAPHICS_PIPELINE,
TEXTURE
};
A failure the null backend can be told to report once, so the engine's error paths run in CTest without a GPU: WAIT_IDLE makes the next waitForIdle fail (wait_idle() then marks the device lost), PRESENT makes the next null swapchain present report device loss. ACQUIRE_OUT_OF_DATE makes the next null swapchain acquire fail with rhi_error::OUT_OF_DATE and PRESENT_FAILED the next present with rhi_error::PRESENT_FAILED; neither marks the device lost or advances the back-buffer index, the way a real swapchain refuses without device loss. GRAPHICS_PIPELINE makes the next createGraphicsPipeline return null and report an error, the way a driver refuses a pipeline, without marking the device lost (a call the null device refuses for a missing vertex shader does not count). TEXTURE does the same to the next createTexture, the way a device out of memory refuses a texture (a call refused for a zero size or an unknown format does not count, nor do staging textures or handles for native textures).
Forward Declarations
device::impl
IDevice