get_texture 函数

采用纹理对象,并返回IUnknown接口。

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                     
)  ;

参数

  • _Value_type
    纹理的元素类型。

  • _Rank
    纹理的秩。

  • _Texture
    为其返回基础 D3D 纹理接口 D3D accelerator_view 上纹理的 writeonly_texture_view。

返回值

对应于底层纹理 D3D 纹理 IUnknown 接口指针。

要求

标题: amp_graphics.h

命名空间: Concurrency::graphics::direct3d

请参见

参考

Concurrency::graphics::direct3d 命名空间