Compartilhar via


make_array Function

Create an array from a Direct3D buffer interface pointer.

template<
   typename _Value_type,
   int _Rank
>
array<_Value_type, _Rank> make_array(
   const extent<_Rank> &_Extent,
   const Concurrency::accelerator_view &_Rv,
   IUnknown *_D3D_buffer
)  ;

Parameters

  • _Value_type
    The element type of the array to be created.

  • _Rank
    The rank of the array to be created.

  • _Extent
    An extent that describes the shape of the array aggregate.

  • _Rv
    A D3D accelerator view on which the array is to be created.

  • _D3D_buffer
    IUnknown interface pointer of the D3D buffer to create the array from.

Return Value

An array created using the provided Direct3D buffer.

Requirements

Header: amp.h

Namespace: Concurrency::direct3d

See Also

Reference

Concurrency::direct3d Namespace