LiteFX::Rendering::Backends::DirectX12Backend::createDevice¶
Creates a new graphics device.
Synopsis¶
Declared in <litefx/rendering.hpp>
template<
typename TSelf,
typename... TArgs>
device_type& createDevice(this
TSelf& self,
String const& name,
adapter_type const& adapter,
UniquePtr<surface_type>&& surface,
TArgs&&... _args);
Return Value¶
A pointer of the created graphics device instance.
Parameters¶
| Name | Description |
|---|---|
| name | The name of the device for lookups. |
| adapter | The adapter from which to create the device. |
| surface | The surface that the device draws to. |
| _args | The arguments that are passed to the graphics device constructor. |