共用方式為


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

get_sampler

取得指定快捷鍵檢視上代表指定取樣器物件的 D3D 取樣器狀態介面。

IUnknown* get_sampler(
    const Concurrency::accelerator_view& _Av,
    const sampler& _Sampler) restrict(amp);

參數

_Av
要在其中建立 D3D 取樣器狀態的 D3D 加速器檢視。

_採樣
建立基礎 D3D 取樣器狀態介面的取樣器物件。

傳回值

對應至代表指定取樣器的 D3D 取樣器狀態的 IUnknown 介面指標。

get_texture

取得指定 之紋理對象基礎的 Direct3D 紋理 介面。

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

參數

value_type
紋理的元素類型。

_排
紋理的排名。

_質地
與傳回基礎 Direct3D 紋理介面之accelerator_view相關聯的紋理或紋理檢視。

傳回值

對應至紋理基礎 Direct3D 紋理的 IUnknown 介面指標。

make_sampler

從 D3D 取樣器狀態介面指標建立取樣器。

sampler make_sampler(_In_ IUnknown* _D3D_sampler) restrict(amp);

參數

_D3D_sampler
要從中建立取樣器的 D3D 取樣器狀態的 IUnknown 介面指標。

傳回值

取樣器代表提供的 D3D 取樣器狀態。

make_texture

使用指定的參數建立 紋理 物件。

template<
    typename value_type,
    int _Rank
>
texture<value_type, _Rank> make_texture(
    const Concurrency::accelerator_view& _Av,
    _In_ IUnknown* _D3D_texture,
    DXGI_FORMAT _View_format = DXGI_FORMAT_UNKNOWN) restrict(cpu);

參數

value_type
紋理中專案的型別。

_排
紋理的排名。

_Av
要在其中建立紋理的 D3D 快捷鍵檢視。

_D3D_texture
要從中建立紋理之 D3D 紋理的 IUnknown 介面指標。

_View_format
要用於從這個紋理建立之檢視的 DXGI 格式。 傳遞 DXGI_FORMAT_UNKNOWN (預設值),以從基礎格式_D3D_texture和此範本的value_type衍生格式。 所提供的格式必須與_D3D_texture的基礎格式相容。

傳回值

使用提供的 D3D 紋理的紋理。

msad4

比較 4 位元組參考值和 8 位元組的來源值,並累積 4 個總和的向量。 每個總和都會對應至參考值與來源值之間不同位元組對齊的遮罩絕對差異總和。

inline uint4 msad4(
    uint _Reference,
    uint2 _Source,
    uint4 _Accum) restrict(amp);

參數

_參考
一個 uint 值中 4 個字節的參考陣列

_源
兩個 uint 值向量中 8 個字節的來源陣列。

_Accum
要加入至參考值與來源值之間不同位元組對齊之絕對差異遮罩總和的 4 個值的向量。

傳回值

傳回 4 個總和的向量。 每個總和都會對應至參考值與來源值之間不同位元組對齊的遮罩絕對差異總和。

需求

標頭: amp_graphics.h

Namespace: Concurrency::graphics::d irect3d

另請參閱

Concurrency::graphics::direct3d 命名空間