EvaluateAttributeAtSample function

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

Intrinsic Functions

Shader Model 5