Texture2D::GatherAlpha(S,float,int) function
Returns the alpha components of the four texel values that would be used in a bi-linear filtering operation.
TemplateType GatherAlpha(
in sampler s,
in float2 location,
in int2 offset
);
-
s [in]
-
Type: sampler
The zero-based sampler index.
-
location [in]
-
Type: float2
The sample coordinates (u,v).
-
offset [in]
-
Type: int2
An offset that is applied to the texture coordinate before sampling.
Type: TemplateType
A four-component value whose type is the same as the template type.
The texture samples can be used for bilinear interpolation.
This function is supported for the following types of shaders:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x | x | x | x | x | x |