get_texture Function

Gets the Direct3D texture interface underlying the specified texture object.

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

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

template<
   typename _Value_type,
   int _Rank
>
_Ret_ IUnknown *get_texture(
   const texture_view<_Value_type, _Rank> &_Texture
) restrict(cpu);

Parameters

  • _Value_type
    The element type of the texture.

  • _Rank
    The rank of the texture.

  • _Texture
    A texture or texture view associated with the accelerator_view for which the underlying Direct3D texture interface is returned.

Return Value

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

Requirements

Header: amp_graphics.h

Namespace: Concurrency::graphics::direct3d

See Also

Reference

Concurrency::graphics::direct3d Namespace