Skip to content

LiteFX::Rendering::Backends::VulkanFrameBuffer::mapRenderTarget

Maps a render target to a frame buffer image.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

[[dllimport, dllexport]] virtual void mapRenderTarget(
    RenderTarget const& renderTarget,
    UInt32 index) override;

Description

When calling IRenderPass::begin, passing a frame buffer, the render pass attempts to resolve all render target images. In order for this resolution to be successful, a mapping first needs to be established between the render target and the image. This method establishes this mapping.

Calling this method multiple times will overwrite the mapped index.

Parameters

NameDescription
renderTargetThe render target to map the image to.
indexThe index of the image to map to the render target.

See Also

unmapRenderTarget