title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Texture2DArray::GatherGreen(S,float,int) function |
Returns the green components of the four texel values that would be used in a bi-linear filtering operation. | Texture2DArray::GatherGreen(S,float,int) function |
bfe9ab9f-64f7-4a50-aa46-2ec6effebce2 |
|
|
|
|
reference |
05/31/2018 |
Returns the green components of the four texel values that would be used in a bi-linear filtering operation.
TemplateType GatherGreen(
in sampler s,
in float3 location,
in int2 offset
);
-
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.
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 |