title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Texture2DArray::GatherCmpGreen(S,float,float,int2,int2,int2,int2) function |
For four texel values that would be used in a bi-linear filtering operation, returns a comparison of their green component against a compare value. | Texture2DArray::GatherCmpGreen(S,float,float,int2,int2,int2,int2) function |
5A4B8AEB-B278-4456-893A-CAE61BFD6CA5 |
|
|
|
|
reference |
05/31/2018 |
For four texel values that would be used in a bi-linear filtering operation, returns a comparison of their green component against a compare value.
TemplateType GatherCmpGreen(
in SamplerState S,
in float Location,
in float CompareValue,
in int2 Offset1,
in int2 Offset2,
in int2 Offset3,
in int2 Offset4
);
-
S [in]
-
Type: SamplerState
The zero-based sampler index.
-
Location [in]
-
Type: float
The sample coordinates (u,v).
-
CompareValue [in]
-
Type: float
A value to compare each against each sampled value.
-
Offset1 [in]
-
Type: int2
The first offset component applied to the texture coordinates before sampling.
-
Offset2 [in]
-
Type: int2
The second offset component applied to the texture coordinates before sampling.
-
Offset3 [in]
-
Type: int2
The third offset component applied to the texture coordinates before sampling.
-
Offset4 [in]
-
Type: int2
The fourth offset component applied to the texture coordinates 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 |