Skip to content

LiteFX::Rendering::Backends::VulkanBackend::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

NameDescription
nameThe name of the device for lookups.
adapterThe adapter from which to create the device.
surfaceThe surface that the device draws to.
_argsThe arguments that are passed to the graphics device constructor.