Returns the absolute value of the partial derivatives, or abs(ddx(x)) + abs(ddy(x)).
| ret fwidth(x) |
|---|
Where:
| Name | In/Out | Template Type | Component Type | Size |
|---|---|---|---|---|
| x | in | scalar, vector, or matrix | float | any |
| ret | out | same as input x | float | same dimension(s) as input x |
This intrinsic function is supported in the following (or above) shader versions:
| Vertex Shader | Pixel Shader |
|---|---|
| n/a | ps_2_x |