LiteFX::Rendering::Backends::DirectX12RenderPass::activeFrameBuffer¶
Returns the current frame buffer from of the render pass.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] virtual SharedPtr<DirectX12FrameBuffer const> activeFrameBuffer() const noexcept override;
Description¶
The frame buffer can only be obtained, if the render pass has been started by calling begin. If the render pass has ended or not yet started, the method will instead raise an exception.
Return Value¶
A pointer to the currently active frame buffer or nullptr, if the render pass has not been started.
See Also¶
begin