共用方式為


writeonly_texture_view 類別

提供唯寫存取權限給紋理。

語法

template <
    typename value_type,
    int _Rank
>
class writeonly_texture_view;

template <
    typename value_type,
    int _Rank
>
class writeonly_texture_view<value_type, _Rank> : public details::_Texture_base<value_type, _Rank>;

參數

value_type
紋理中元素的型別。

_排行
紋理的排名。

成員

公共型別定義

名稱 描述
scalar_type
value_type 紋理中元素的型別。

公開建構函式

名稱 描述
writeonly_texture_view建構函式 初始化 writeonly_texture_view 類別的新執行個體。
~writeonly_texture_view解構函式 銷毀writeonly_texture_view物件。

公用方法

名稱 描述
set 設定指定索引處元素的值。

公用運算子

名稱 描述
operator= 將指定的 writeonly_texture_view 物件複製到這個物件。

公用常數

名稱 描述
rank 常數 取得 writeonly_texture_view 物件的位階。

繼承階層架構

_Texture_base

writeonly_texture_view

需求

標頭: amp_graphics.h

命名空間: Concurrency::graphics

~writeonly_texture_view

銷毀writeonly_texture_view物件。

~writeonly_texture_view() restrict(amp,cpu);

運算子=

將指定的 writeonly_texture_view 物件複製到這個物件。

writeonly_texture_view<value_type, _Rank>& operator= (
    const writeonly_texture_view<value_type, _Rank>& _Other) restrict(amp,cpu);

參數

_其他
writeonly_texture_view 要複製的來源物件。

傳回值

這個 writeonly_texture_view 對象的參考。

順位

取得 writeonly_texture_view 物件的位階。

static const int rank = _Rank;

設定

設定指定索引處元素的值。

void set(
    const index<_Rank>& _Index,
    const value_type& value) const restrict(amp);

參數

_指數
元素的索引。

value
元素的新值。

寫入專用_紋理檢視

初始化 writeonly_texture_view 類別的新執行個體。

writeonly_texture_view(
    texture<value_type,
    _Rank>& _Src) restrict(amp);

writeonly_texture_view(
    const writeonly_texture_view<value_type,
    _Rank>& _Src) restrict(amp,cpu);

參數

_排行
紋理的排名。

value_type
紋理中元素的型別。

_Src
用於創建writeonly_texture_view的紋理。

另請參閱

Concurrency::graphics 命名空間