Skip to content

LiteFX::Rendering::DeviceState::release

Releases a render pass.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] bool release(IRenderPass const& renderPass);

Description

Calling this method will destroy the render pass. Before calling it, the render pass must be requested using renderPass. After this method has been executed, all references (including the renderPass parameter) will be invalid. If the render pass is not managed by the device state, this method will do nothing and return false.

Return Value

true, if the render pass was properly released, false otherwise.

Parameters

NameDescription
renderPassThe render pass to release.