Texture2DArray::GatherRed(S,float,int) function
Samples a texture and returns the red component.
Syntax
TemplateType GatherRed(
in sampler s,
in float3 location,
in int2 offset
);
Parameters
-
s [in]
-
Type: sampler
The zero-based sampler index.
-
location [in]
-
Type: float3
The sample coordinates (u,v).
-
offset [in]
-
Type: int2
An offset that is applied to the texture coordinate before sampling.
Return value
Type: TemplateType
A four-component value whose type is the same as the template type.
Remarks
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 |
See also