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¶
| Name | Description |
|---|---|
| backend | The backend from which the device got created. |
| adapter | The adapter the device uses for drawing. |
| surface | The surface, the device should draw to. |
| features | The features that should be supported by this device. |