Skip to content

LiteFX::Rendering::BarrierBuilder::ImageBarrierBuilder::transitionLayout

Specifies a layout transition for an image resource.

Synopsis

Declared in <litefx/rendering_builders.hpp>

constexpr ImageLayoutBarrierBuilder<TParent> transitionLayout(
    ImageLayout fromLayout,
    ImageLayout toLayout);

Return Value

A builder that sets up the layout transition barrier for a set of sub-resources of a specific image.

Parameters

NameDescription
fromLayoutThe current layout of the image.
toLayoutThe layout to transition an image to when executing the barrier.