Skip to content

LiteFX::Rendering::Backends::DirectX12Backend

Implements the DirectX 12 RenderBackend.

Synopsis

Declared in <litefx/backends/dx12.hpp>

class [[dllimport, dllexport]] DirectX12Backend final
    : public RenderBackend<DirectX12Device>
    , public ComResource<IDXGIFactory7>

Base Classes

NameDescription
RenderBackend<DirectX12Device>Defines a back-end, that provides a device instance for a certain surface and graphics adapter.
ComResource<IDXGIFactory7>A resource that is hold by a ComPtr.

Type Aliases

Member Functions

NameDescription
DirectX12Backend [constructor] [deleted]Copy constructor
DirectX12Backend [constructor]Move constructor
DirectX12Backend [constructor]Creates a new DirectX 12 graphics backend instance.
~DirectX12Backend [destructor] [virtual]Destructor
operator= [deleted]Copy assignment operator
operator= Move assignment operator
adapters [virtual]Lists all available graphics adapters.
createDevice Creates a new graphics device.
createSurface Creates a surface on a window handle.
device [virtual]Looks up a device and returns a pointer to it, or nullptr, if no device with the provided name could be found.
device [virtual]Looks up a device and returns a pointer to it, or nullptr, if no device with the provided name could be found.
enableAdvancedSoftwareRasterizer Enables Windows Advanced Software Rasterization (WARP).
findAdapter [virtual]Finds an adapter using a preference setting, based on the user preferences made in the operating system settings.
findAdapter [virtual]Finds an adapter using its unique ID.
handle [virtual]Returns the resource managed by the class.
name [virtual]Gets the name of the backend.
registerDevice [virtual]Registers a new device on the backend.
registerDevice [virtual]Registers a new device on the backend.
releaseDevice [virtual]Destroys and removes a device from the backend.
type [virtual]Gets the type of the backend.

Protected Member Functions

NameDescription
operator= Assignment operator
operator= [deleted]Assignment operator
operator= Assignment operator
operator= Assignment operator
activate [virtual]Called by the parent App, if the backend is started.
deactivate [virtual]Called by the parent App, if the backend is stopped.
handle [virtual]Returns the resource managed by the class.

Friends

NameDescription
LiteFX::Rendering::Backends::DirectX12Backend::DirectX12BackendImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.