Skip to content

LiteFX::Rendering::Backends::DirectX12Backend::registerDevice

Registers a new device on the backend.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] virtual void registerDevice(
    String const& name,
    SharedPtr<device_type>&& device) = 0;

Parameters

NameDescription
nameThe name of the device for lookups.
deviceA pointer to the device.