Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Fungsi berikut tersedia di Concurrency::graphics namespace:
copy Function (Concurrency::graphics Namespace)
Menyalin tekstur sumber ke buffer tujuan, atau menyalin buffer sumber ke buffer tujuan. Bentuk umum dari fungsi ini adalah 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);
Parameter
_Copy_extent
Jangkauan bagian tekstur yang akan disalin.
_Dst
Objek yang akan disalin.
_Dst_byte_size
Jumlah byte di tujuan.
_Dst_type
Jenis objek tujuan.
_Dst_offset
Offset ke tujuan untuk mulai menyalin.
InputIterator
Jenis iterator input.
OutputIterator
Jenis iterator output.
_Src
Untuk objek yang akan disalin.
_Src_byte_size
Jumlah byte dalam sumber.
_Src_type
Jenis objek sumber.
_Src_offset
Offset ke sumber untuk mulai menyalin.
pertama
Iterator awal ke dalam kontainer sumber.
terakhir
Iterator akhir ke dalam kontainer sumber.
Copy_async Function (Concurrency::graphics Namespace)
Menyalin tekstur sumber secara asinkron ke dalam buffer tujuan, atau menyalin buffer sumber ke dalam buffer tujuan, lalu mengembalikan objek completion_future yang dapat ditunggu. Data tidak dapat disalin saat kode berjalan pada akselerator. Bentuk umum dari fungsi ini adalah 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);
Parameter
_Copy_extent
Jangkauan bagian tekstur yang akan disalin.
_Dst
Objek yang akan disalin.
_Dst_byte_size
Jumlah byte di tujuan.
_Dst_type
Jenis objek tujuan.
_Dst_offset
Offset ke tujuan untuk mulai menyalin.
InputIterator
Jenis iterator input.
OutputIterator
Jenis iterator output.
_Src
Untuk objek yang akan disalin.
_Src_byte_size
Jumlah byte dalam sumber.
_Src_type
Jenis objek sumber.
_Src_offset
Offset ke sumber untuk mulai menyalin.
pertama
Iterator awal ke dalam kontainer sumber.
terakhir
Iterator akhir ke dalam kontainer sumber.
Persyaratan
Header: amp_graphics.h
Namespace: Konkurensi::grafis