Texture2DArray::Gather (S,float,int) 函数

返回将在双线性筛选操作中使用的四个纹素值。

语法

TemplateType Gather(
  in sampler s,
  in float3 location,
  in int2 offset
);

parameters

s [in]

类型: 取样器

从零开始的采样器索引。

location [in]

类型: float3

示例坐标 (u,v) 。

offset [in]

类型: int2

采样前应用于纹理坐标的偏移量。

返回值

类型: TemplateType

类型与模板类型相同的四分量值。

备注

以下类型的着色器支持此函数:

顶点 外壳 Geometry 像素 计算
x x x x x x

 

另请参阅

收集方法

着色器模型 5