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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
Exceptions¶
| Name | Thrown on |
|---|---|
ArgumentOutOfRangeException | Thrown, if the number of either the source buffer or the target buffer has not enough elements for the specified elements parameter. |
Parameters¶
| Name | Description |
|---|---|
| data | The addresses that mark the beginning of the element data to map. |
| elementSize | The number of bytes to map for each element. |
| target | The target buffer to transfer data to. |
| targetElement | The first array element to transfer the data to. |
| size | The number of bytes to map. |
| subresource | The index of the sub-resource of the target image to receive data. |
| firstSubresource | The index of the first sub-resource of the target image to receive data. |
| elements | The number of elements to copy from the source buffer into the target image sub-resources. |
| source | The source buffer to transfer data from. |
| sourceElement | The index of the first element in the source buffer to copy. |
| subresources | The number of sub-resources to copy. |
| sourceSubresource | The index of the first sub-resource to copy from the source image. |
| targetSubresource | The image of the first sub-resource in the target image to receive data. |
See Also¶
IBarrier