GatherGreen function
Samples a texture and returns the green component.
Syntax
TemplateType GatherGreen( in sampler s, in float2 location, in int2 offset );
Parameters
- 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.
Remarks
The texture samples can be used for bilinear interpolation.
The following declaration shows an overloaded version of this function.
TemplateType GatherGreen(
sampler s,
float{2,3} location,
int2 offset1,
int2 offset2,
int2 offset3,
int2 offset4,
);
This function is supported for the following types of shaders:
| Vertex | Hull | Domain | Geometry | Pixel | Compute |
|---|---|---|---|---|---|
| x | x | x | x | x | x |
See also
Send comments about this topic to Microsoft
Build date: 3/5/2013
