Skip to content

LiteFX::Rendering::ISwapChain::device

Returns the swap chain's parent device instance.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual IGraphicsDevice const& device() const = 0;

Exceptions

NameThrown on
RuntimeExceptionThrown, if the device is already released.

Return Value

A reference of the swap chain's parent device instance.