Concurrency::graphics (Funciones del espacio de nombres)Concurrency::graphics namespace functions

copiarcopy
copy_asynccopy_async

Función Copy (espacio de nombres Concurrency:: Graphics)copy Function (Concurrency::graphics Namespace)

Copia una textura de origen en un búfer de destino o copia un búfer de origen en un búfer de destino.Copies a source texture into a destination buffer, or copies a source buffer into a destination buffer. La forma general de esta función es copy(src, dest).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);

ParámetrosParameters

_Copy_extent_Copy_extent
La extensión de la sección de textura que se va a copiar.The extent of the texture section to be copied.

_Dst_Dst
El objeto en el que se copia.The object to copy to.

_Dst_byte_size_Dst_byte_size
Número de bytes del destino.The number of bytes in the destination.

_Dst_type_Dst_type
Tipo del objeto de destino.The type of the destination object.

_Dst_offset_Dst_offset
Desplazamiento en el destino en el que se va a empezar a copiar.The offset into the destination at which to begin copying.

InputIteratorInputIterator
El tipo de iterador de entrada.The type of the input iterator.

OutputIteratorOutputIterator
Tipo del iterador de salida.The type of the output iterator.

_Src_Src
Objeto que se va a copiar.To object to copy.

_Src_byte_size_Src_byte_size
Número de bytes del origen.The number of bytes in the source.

_Src_type_Src_type
Tipo del objeto de origen.The type of the source object.

_Src_offset_Src_offset
Desplazamiento en el origen desde el que se va a empezar a copiar.The offset into the source from which to begin copying.

firstfirst
Un iterador inicial en el contenedor de origen.A beginning iterator into the source container.

lastlast
Un iterador final en el contenedor de origen.An ending iterator into the source container.

Función copy_async (espacio de nombres Concurrency:: Graphics)copy_async Function (Concurrency::graphics Namespace)

Copia asincrónicamente una textura de origen en un búfer de destino, o copia un búfer de origen en un búfer de destino y, a continuación, devuelve un objeto completion_future en el que se puede esperar.Asynchronously copies a source texture into a destination buffer, or copies a source buffer into a destination buffer, and then returns a completion_future object that can be waited on. Los datos no se pueden copiar cuando el código se está ejecutando en un acelerador.Data can't be copied when code is running on an accelerator. La forma general de esta función es copy(src, dest).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
>
concurrency::completion_future copy_async(
    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
>
concurrency::completion_future copy_async(
    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
>
concurrency::completion_future copy_async(
    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
>
concurrency::completion_future copy_async(
    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
>
concurrency::completion_future copy_async(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
>
concurrency::completion_future copy_async(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
>
concurrency::completion_future copy_async(_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
>
concurrency::completion_future copy_async(_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
>
concurrency::completion_future copy_async(_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
>
concurrency::completion_future copy_async(_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);

ParámetrosParameters

_Copy_extent_Copy_extent
La extensión de la sección de textura que se va a copiar.The extent of the texture section to be copied.

_Dst_Dst
El objeto en el que se copia.The object to copy to.

_Dst_byte_size_Dst_byte_size
Número de bytes del destino.The number of bytes in the destination.

_Dst_type_Dst_type
Tipo del objeto de destino.The type of the destination object.

_Dst_offset_Dst_offset
Desplazamiento en el destino en el que se va a empezar a copiar.The offset into the destination at which to begin copying.

InputIteratorInputIterator
El tipo de iterador de entrada.The type of the input iterator.

OutputIteratorOutputIterator
Tipo del iterador de salida.The type of the output iterator.

_Src_Src
Objeto que se va a copiar.To object to copy.

_Src_byte_size_Src_byte_size
Número de bytes del origen.The number of bytes in the source.

_Src_type_Src_type
Tipo del objeto de origen.The type of the source object.

_Src_offset_Src_offset
Desplazamiento en el origen desde el que se va a empezar a copiar.The offset into the source from which to begin copying.

firstfirst
Un iterador inicial en el contenedor de origen.A beginning iterator into the source container.

lastlast
Un iterador final en el contenedor de origen.An ending iterator into the source container.

RequisitosRequirements

Encabezado: amp_graphics. hHeader: amp_graphics.h

Espacio de nombres: Concurrency:: GraphicsNamespace: Concurrency::graphics

Consulte tambiénSee also

Concurrency::graphics (Espacio de nombres)Concurrency::graphics Namespace