共用方式為


get_texture 函式

接收一個 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
    texture 的元素型別。

  • _Rank
    texture 的秩。

  • _Texture
    一個其底下的 D3D texture 介面會被回傳的 D3D accelerator_view 的 texture 的唯寫 _texture_view 。

傳回值

指向對應於 texture 底下的 D3D texture 的 IUnknown 介面的指標。

需求

標頭: amp_graphics.h

命名空間: Concurrency::graphics::direct3d

請參閱

參考

Concurrency::graphics::direct3d 命名空間