Export (0) Print
Expand All

copy Function (Concurrency::graphics Namespace)

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

template <
   typename _Value _type,
   int _Rank
>
void copy(
   const texture<_Value_type, _Rank>& _Src,
   _Out_ void * _Dst,
   unsigned int _Dst_byte_size
);

template <
   typename _Value_type, 
   int _Rank
>
void copy(
   const void * _Src,
   unsigned int _Src_byte_size,
   texture<_Value_type, _Rank>& _Dst
);

template <
   typename _Value_type,
   int _Rank
>
void copy(
   const void * _Src,
   unsigned int _Src_byte_size,
   writeonly_texture_view<_Value_type, _Rank>& _Dst
);

_Value_type

The data type of the elements that are copied.

_Rank

The rank of the object to copy from or the object to copy to.

_Src

To object to copy.

_Src_byte_size

The number of bytes in the source buffer.

_Dst

The object to copy to.

_Dst_byte_size

The number of bytes in the destination buffer.

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:
© 2014 Microsoft