Skip to content

LiteFX::Rendering::Backends::DirectX12Device::create

Initializes the device instance.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] static SharedPtr<DirectX12Device> create(
    DirectX12Backend const& backend,
    DirectX12GraphicsAdapter const& adapter,
    UniquePtr<DirectX12Surface>&& surface,
    GraphicsDeviceFeatures features = {});

Return Value

A shared pointer to the new device instance.

Parameters

NameDescription
backendThe backend from which the device got created.
adapterThe adapter the device uses for drawing.
surfaceThe surface, the device should draw to.
featuresThe features that should be supported by this device.