Skip to content

Latest commit

 

History

History
89 lines (52 loc) · 1.59 KB

evaluateattributecentroid.md

File metadata and controls

89 lines (52 loc) · 1.59 KB
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
EvaluateAttributeCentroid function HLSL
apiref
EvaluateAttributeCentroid
NA
reference
05/31/2018

EvaluateAttributeCentroid function

Evaluates at the pixel centroid.

Syntax

numeric EvaluateAttributeCentroid(
  in attrib numeric value
);

Parameters

value [in]

Type: attrib numeric

The input value.

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