Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

copy Function (Concurrency::graphics Namespace)

Copies a source texture into a destination buffer, or copies a source buffer into a destination buffer. The general form of this function is copy(src, dest).

template <
   typename _Src_type,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture, void>::type>
>
void copy (
   const _Src_type &_Src,
   _Out_ void * _Dst,
   unsigned int _Dst_byte_size
);

template <
   typename _Src_type,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture, void>::type
>
void copy(
   const _Src_type &_Src,
   const index<_Src_type::rank> &_Src_offset,
   const extent<_Src_type::rank> &_Copy_extent,
   _Out_ void * _Dst,
   unsigned int _Dst_byte_size
);

template <
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Dst_type>::is_texture, void>::type
>
void copy(
   const void * _Src,
   unsigned int _Src_byte_size,
   _Dst_type & _Dst
);

template <
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Dst_type>::is_texture, void>::type
>
void copy(
   const void * _Src,
   unsigned int _Src_byte_size,
   _Dst_type & _Dst,
   const index<_Dst_type::rank> &_Dst_offset,
   const extent<_Dst_type::rank> &_Copy_extent
);

template <
   typename InputIterator,
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Dst_type>::is_texture, void>::type
>
void copy(
   InputIterator _First,
   InputIterator _Last,
   _Dst_type &_Dst
);

template <
   typename InputIterator,
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Dst_type>::is_texture, void>::type
>
void copy(
   InputIterator _First,
   InputIterator _Last,
   _Dst_type &_Dst,
   const index<_Dst_type::rank> &_Dst_offset,
   const extent<_Dst_type::rank> &_Copy_extent
);

template <
   typename _Src_type,
   typename OutputIterator,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture && !details::texture_traits<OutputIterator>::is_texture, void>::type
>
void copy(
   const _Src_type &_Src,
   OutputIterator _Dst
);

template <
   typename _Src_type,
   typename OutputIterator,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture && !details::texture_traits<OutputIterator>::is_texture, void>::type
>
void copy (
   const _Src_type &_Src,
   const index<_Src_type::rank> &_Src_offset,
   const extent<_Src_type::rank> &_Copy_extent,
   OutputIterator _Dst
);

template <
   typename _Src_type,
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture && details::texture_traits<_Dst_type>::is_texture, void>::type
>
void copy (
   const _Src_type &_Src,
   _Dst_type &_Dst
);

template <
   typename _Src_type,
   typename _Dst_type,
   typename = typename std::enable_if<details::texture_traits<_Src_type>::is_texture && details::texture_traits<_Dst_type>::is_texture,
   void>::type
>
void copy (
   const _Src_type &_Src,
   const index<_Src_type::rank> &_Src_offset,
   _Dst_type &_Dst,
   const index<_Dst_type::rank> &_Dst_offset,
   const extent<_Src_type::rank> &_Copy_extent
);

_Copy_extent

The extent of the texture section to be copied.

_Dst

The object to copy to.

_Dst_byte_size

The number of bytes in the destination.

_Dst_type

The type of the destination object.

_Dst_offset

The offset into the destination at which to begin copying.

InputIterator

The type of the input interator.

OutputIterator

The type of the output iterator.

_Src

To object to copy.

_Src_byte_size

The number of bytes in the source.

_Src_type

The type of the source object.

_Src_offset

The offset into the source from which to begin copying.

_First

A beginning iterator into the source container.

_Last

An ending iterator into the source container.

The copy operation always performs a deep copy.

If the extents of the source and destination objects do not match, a runtime_exception is thrown.

Header: amp_graphics.h

Namespace: Concurrency::graphics

Show:
© 2015 Microsoft