Skip to content

LiteFX::Rendering::Barrier::transition

transition overloads

Synopses

Declared in <litefx/rendering.hpp>

Inserts a buffer barrier that blocks access to buffer of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.

[[dllimport, dllexport]] constexpr void transition(
    IBuffer const& buffer,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter);

» more...

Inserts a buffer barrier that blocks access to buffer of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.

constexpr virtual void transition(
    buffer_type const& buffer,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter) = 0;

» more...

Inserts a buffer barrier that blocks access to a buffers element of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.

[[dllimport, dllexport]] constexpr void transition(
    IBuffer const& buffer,
    UInt32 element,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter);

» more...

Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.

[[dllimport, dllexport]] constexpr void transition(
    IImage const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout layout);

» more...

Inserts a buffer barrier that blocks access to a buffers element of types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore.

constexpr virtual void transition(
    buffer_type const& buffer,
    UInt32 element,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter) = 0;

» more...

Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.

constexpr virtual void transition(
    image_type const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout layout) = 0;

» more...

Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.

[[dllimport, dllexport]] constexpr void transition(
    IImage const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout);

» more...

Inserts an image barrier that blocks access to all sub-resources of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions all sub-resources into layout.

constexpr virtual void transition(
    image_type const& image,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout) = 0;

» more...

Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.

[[dllimport, dllexport]] constexpr void transition(
    IImage const& image,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout layout);

» more...

transition overloads

constexpr virtual void transition(
    image_type const& image,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout layout) = 0;

» more...

Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.

[[dllimport, dllexport]] constexpr void transition(
    IImage const& image,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout);

» more...

Inserts an image barrier that blocks access to a sub-resource range of image of the types contained in accessAfter for subsequent commands until previous commands have finished accesses contained in accessBefore and transitions the sub-resource into layout.

constexpr virtual void transition(
    image_type const& image,
    UInt32 level,
    UInt32 levels,
    UInt32 layer,
    UInt32 layers,
    UInt32 plane,
    ResourceAccess accessBefore,
    ResourceAccess accessAfter,
    ImageLayout fromLayout,
    ImageLayout toLayout) = 0;

» more...

Parameters

NameDescription
bufferThe buffer resource to transition.
accessBeforeThe access types previous commands have to finish.
accessAfterThe access types that subsequent commands continue with.
elementThe element of the resource to transition.
imageThe image resource to transition.
layoutThe image layout to transition into.
fromLayoutThe image layout to transition from.
toLayoutThe image layout to transition into.
levelThe base mip-map level of the sub-resource range.
levelsThe number of mip-map levels of the sub-resource range.
layerThe base array layer of the sub-resource range.
layersThe number of array layer of the sub-resource range.
planeThe plane of the sub-resource.