title | description | ms.assetid | keywords | topic_type | api_name | api_type | ms.topic | ms.date | api_location | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EvaluateAttributeCentroid function |
Evaluates at the pixel centroid. |
6735b3f4-765f-4cd9-9f38-326a52709021 |
|
|
|
|
reference |
05/31/2018 |
Evaluates at the pixel centroid.
numeric EvaluateAttributeCentroid(
in attrib numeric value
);
-
value [in]
-
Type: attrib numeric
The input value.
Interpolation mode can be linear or linear_no_perspective on the variable. Use of centroid or sample is ignored. Attributes with constant interpolation are also allowed, in which case the sample index is ignored.
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
Shader Model 5 and higher shader models | yes |
This function is supported in the following types of shaders:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
x |