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.
Evaluates at the indexed sample ___location.
Syntax
numeric EvaluateAttributeAtSample(
in attrib numeric value,
in uint sampleindex
);
Parameters
-
value [in]
-
Type: attrib numeric
The input value.
-
sampleindex [in]
-
Type: uint
The sample ___location.
Remarks
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.
Minimum Shader Model
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 |
See also