Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For four texel values that would be used in a bi-linear filtering operation, returns a comparison of their red component against a compare value.
float4 GatherCmpRed(
in SamplerComparisonState s,
in float3 location,
in float compare_value,
in int2 offset
);
-
s [in]
-
Type: SamplerComparisonState
The zero-based sampler index.
-
location [in]
-
Type: float3
The sample coordinates (u,v).
-
compare_value [in]
-
Type: float
A value to compare each against each sampled value.
-
offset [in]
-
Type: int2
An offset that is applied to the texture coordinate before sampling.
Type: float4
A four-component value, each component is the result of a per-component comparison.
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 |