使用特定采样配置采样特定坐标的纹理,并返回四个采样的纹理的 Alpha (w) 组分。
const gather_return_type gather_alpha(
const sampler& _Sampler,
const coordinates_type& _Coord
) const restrict(amp);
template<
address_mode _Address_mode = address_clamp
>
const gather_return_type gather_alpha(
const coordinates_type& _Coord
) const restrict(amp);
参数
_Address_mode
用于取样 texture_view 的地址模式。 所有维度的地址模式均相同。_Sampler
用于采样 texture_view 的采样器配置。_Coord
其中采用示例的坐标。 部分坐标值用于内插在示例纹理之间。
返回值
包含 4 个采样纹理值的 alpha (w) 组件的级别 4 短矢量。
要求
**标头:**amp_graphics.h
**命名空间:**concurrency::graphics