Skip to content

LiteFX::Rendering::CommandBuffer::transfer

transfer overloads

Synopses

Declared in <litefx/rendering.hpp>

Performs a buffer-to-buffer transfer from a temporary buffer into target.

[[dllimport, dllexport]] void transfer(
    Span<void const const*> data,
    size_t elementSize,
    IBuffer const& target,
    UInt32 targetElement = 0) const;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

virtual void transfer(
    Span<void const const*> data,
    size_t elementSize,
    buffer_type const& target,
    UInt32 firstElement = 0) const = 0;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

[[dllimport, dllexport]] void transfer(
    void const const* data,
    size_t size,
    IImage const& target,
    UInt32 subresource = 0) const;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

virtual void transfer(
    void const const* data,
    size_t size,
    image_type const& target,
    UInt32 subresource = 0) const = 0;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

[[dllimport, dllexport]] void transfer(
    Span<void const const*> data,
    size_t elementSize,
    IImage const& target,
    UInt32 firstSubresource = 0,
    UInt32 elements = 1) const;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

virtual void transfer(
    Span<void const const*> data,
    size_t elementSize,
    image_type const& target,
    UInt32 firstSubresource = 0,
    UInt32 subresources = 1) const = 0;

» more...

Performs a buffer-to-buffer transfer from source to target.

[[dllimport, dllexport]] void transfer(
    IBuffer const& source,
    IBuffer const& target,
    UInt32 sourceElement = 0,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const;

» more...

Performs a buffer-to-image transfer from source to target.

[[dllimport, dllexport]] void transfer(
    IBuffer const& source,
    IImage const& target,
    UInt32 sourceElement = 0,
    UInt32 firstSubresource = 0,
    UInt32 elements = 1) const;

» more...

Performs an image-to-buffer transfer from source to target.

[[dllimport, dllexport]] void transfer(
    IImage const& source,
    IBuffer const& target,
    UInt32 firstSubresource = 0,
    UInt32 targetElement = 0,
    UInt32 subresources = 1) const;

» more...

Performs an image-to-image transfer from source to target.

[[dllimport, dllexport]] void transfer(
    IImage const& source,
    IImage const& target,
    UInt32 sourceSubresource = 0,
    UInt32 targetSubresource = 0,
    UInt32 subresources = 1) const;

» more...

Performs a buffer-to-buffer transfer from source to target.

virtual void transfer(
    buffer_type const& source,
    buffer_type const& target,
    UInt32 sourceElement = 0,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const = 0;

» more...

Performs a buffer-to-image transfer from source to target.

virtual void transfer(
    buffer_type const& source,
    image_type const& target,
    UInt32 sourceElement = 0,
    UInt32 firstSubresource = 0,
    UInt32 elements = 1) const = 0;

» more...

Performs an image-to-buffer transfer from source to target.

virtual void transfer(
    image_type const& source,
    buffer_type const& target,
    UInt32 firstSubresource = 0,
    UInt32 targetElement = 0,
    UInt32 subresources = 1) const = 0;

» more...

Performs an image-to-image transfer from source to target.

virtual void transfer(
    image_type const& source,
    image_type const& target,
    UInt32 sourceSubresource = 0,
    UInt32 targetSubresource = 0,
    UInt32 subresources = 1) const = 0;

» more...

Performs a buffer-to-buffer transfer from source to target.

[[dllimport, dllexport]] void transfer(
    SharedPtr<IBuffer const> const& source,
    IBuffer const& target,
    UInt32 sourceElement = 0,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const;

» more...

Performs a buffer-to-image transfer from source to target.

[[dllimport, dllexport]] void transfer(
    SharedPtr<IBuffer const> const& source,
    IImage const& target,
    UInt32 sourceElement = 0,
    UInt32 firstSubresource = 0,
    UInt32 elements = 1) const;

» more...

Performs an image-to-buffer transfer from source to target.

[[dllimport, dllexport]] void transfer(
    SharedPtr<IImage const> const& source,
    IBuffer const& target,
    UInt32 firstSubresource = 0,
    UInt32 targetElement = 0,
    UInt32 subresources = 1) const;

» more...

Performs an image-to-image transfer from source to target.

[[dllimport, dllexport]] void transfer(
    SharedPtr<IImage const> const& source,
    IImage const& target,
    UInt32 sourceSubresource = 0,
    UInt32 targetSubresource = 0,
    UInt32 subresources = 1) const;

» more...

Performs a buffer-to-buffer transfer from source to target.

virtual void transfer(
    SharedPtr<buffer_type const> const& source,
    buffer_type const& target,
    UInt32 sourceElement = 0,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const = 0;

» more...

Performs a buffer-to-image transfer from source to target.

virtual void transfer(
    SharedPtr<buffer_type const> const& source,
    image_type const& target,
    UInt32 sourceElement = 0,
    UInt32 firstSubresource = 0,
    UInt32 elements = 1) const = 0;

» more...

Performs a buffer-to-buffer transfer from source to target.

virtual void transfer(
    SharedPtr<image_type const> const& source,
    buffer_type const& target,
    UInt32 firstSubresource = 0,
    UInt32 targetElement = 0,
    UInt32 subresources = 1) const = 0;

» more...

Performs a buffer-to-image transfer from source to target.

virtual void transfer(
    SharedPtr<image_type const> const& source,
    image_type const& target,
    UInt32 sourceSubresource = 0,
    UInt32 targetSubresource = 0,
    UInt32 subresources = 1) const = 0;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

[[dllimport, dllexport]] void transfer(
    void const const* data,
    size_t size,
    IBuffer const& target,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const;

» more...

Performs a buffer-to-buffer transfer from a temporary buffer into target.

virtual void transfer(
    void const const* data,
    size_t size,
    buffer_type const& target,
    UInt32 targetElement = 0,
    UInt32 elements = 1) const = 0;

» more...

Exceptions

NameThrown on
ArgumentOutOfRangeExceptionThrown, if the number of either the source buffer or the target buffer has not enough elements for the specified elements parameter.

Parameters

NameDescription
dataThe addresses that mark the beginning of the element data to map.
elementSizeThe number of bytes to map for each element.
targetThe target buffer to transfer data to.
targetElementThe first array element to transfer the data to.
sizeThe number of bytes to map.
subresourceThe index of the sub-resource of the target image to receive data.
firstSubresourceThe index of the first sub-resource of the target image to receive data.
elementsThe number of elements to copy from the source buffer into the target image sub-resources.
sourceThe source buffer to transfer data from.
sourceElementThe index of the first element in the source buffer to copy.
subresourcesThe number of sub-resources to copy.
sourceSubresourceThe index of the first sub-resource to copy from the source image.
targetSubresourceThe image of the first sub-resource in the target image to receive data.

See Also

IBarrier