get_texture Function

Takes a texture object and returns an IUnknown interface.

template<
   typename _Value_type,
   int _Rank                     
>
_Ret_ IUnknown *get_texture(
   const texture<_Value_type,
   _Rank> &_Texture                     
)  ;
                     
template<
   typename _Value_type,
   int _Rank                     
>
_Ret_ IUnknown *get_texture(
   const writeonly_texture_view<_Value_type,
   _Rank> &_Texture                     
)  ;

Parameters

  • _Value_type
    The element type of the texture.

  • _Rank
    The rank of the texture.

  • _Texture
    A writeonly_texture_view of a texture on a D3D accelerator_view for which the underlying D3D texture interface is returned.

Return Value

The IUnknown interface pointer corresponding to the D3D texture underlying the texture.

Requirements

Header: amp_graphics.h

Namespace: Concurrency::graphics::direct3d

See Also

Reference

Concurrency::graphics::direct3d Namespace