Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize

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 ModelSupported
Shader Model 5 and higher shader modelsyes

 

This function is supported in the following types of shaders:

VertexHullDomainGeometryPixelCompute
x

 

See also

Shader Model 5

 

 

Community Additions

ADD
Show:
© 2015 Microsoft