Name |
Syntax |
Description |
Abs |
ABS (x) |
Absolute value (per component). |
ACOs |
ACOs (x) |
Returns the arccosine of each component of X. |
All |
All (x) |
Test If all the components of the x are nonzero. |
Any |
Any (x) |
Test if any component of the x is nonzero. |
Asfloat |
Asfloat (x) |
Convert the input type to a float. |
Asin |
ASIN (x) |
Returns the arcsine of each component of X. |
Asint |
Asint (x) |
Convert the input type to an integer. |
Asuint |
Asuint (x) |
Convert the input type to an unsigned integer. |
Atan |
Atan (x) |
Returns the arctangent of X. |
Atan2 |
Atan2 (y, x) |
Returns the arctangent of the values (x, y). |
Ceil |
Ceil (x) |
Returns the smallest integer which is greater than or equal to X. |
Clamp |
Clamp (x, Min, max) |
Clamps x to the range [min, Max]. |
Clip |
Clip (x) |
Discards the current pixel, if any component of X are less than zero. |
Cos |
COS (x) |
Returns the cosine of x. |
Cosh |
Cosh (x) |
Returns the hyperbolic cosine of X. |
Cross |
Cross (x, y) |
Returns the cross product of the 3D vectors. |
D3dcolortoubyte4 |
D3dcolortoubyte4 (x) |
Swizzles and scales components of the 4D vector x to compensate for the lack of UBYTE4 in some hardware. |
Ddx |
DDX (x) |
Returns the partial derivative of X with respect to the Screen-space x-coordinate. |
Ddy |
Ddy (x) |
Returns the partial derivative of X with respect to the Screen-space y-coordinate. |
Degrees |
Degrees (x) |
Converts x from radians to degrees. |
Determinant |
Determinant (m) |
Returns the determinant of the square matrix M. |
Distance |
Distance (x, y) |
Returns the distance between and the points. |
Dot |
Dot (x, y) |
Returns the dot product of the vectors. |
Exp |
EXP (x) |
Returns the base-e exponent. |
Exp2 |
EXP2 (x) |
Base 2 exponent (per component). |
Faceforward |
Faceforward (n, I, NG) |
Returns-n * SIGN (? ( I, NG)). |
Floor |
Floor (x) |
Returns the greatest integer which is less than or equal to X. |
Fmod |
Fmod (x, y) |
Returns The floating point remainder of X/Y. |
Frac |
Frac (x) |
Returns the fractional part of X. |
Frexp |
Frexp (x, exp) |
Returns the mantissa and exponent of X. |
Fwidth |
Fwidth (x) |
Returns ABS (DDX (x)) + ABS (Ddy (x)) |
Getrendertargetsamplecount |
Getrendertargetsamplecount () |
Returns the number of render-target samples. |
Getrendertargetsampleposition |
Getrendertargetsampleposition (x) |
Returns a sample position (x, y) for a given sample index. |
Isfinite |
Isfinite (x) |
Returns true if X is finite, false otherwise. |
Isinf |
Isinf (x) |
Returns true if X is +inf Or-inf, false otherwise. |
isNaN |
isNaN (x) |
Returns true if X is NAN or Qnan, false otherwise. |
Ldexp |
Ldexp (x, exp) |
Returns x * 2exp |
Length |
Length (v) |
Returns the length of the vector v. |
Lerp |
Lerp (x, y, s) |
Returns x + S (y-x). |
Lit |
Lit (n? l, n? h, M) |
Returns a lighting vector (ambient, diffuse, specular, 1) |
Log |
Log (x) |
Returns the base-e logarithm of x. |
Log10 |
LOG10 (x) |
Returns the base-10 logarithm of x. |
Log2 |
LOG2 (x) |
Returns the base-2 logarithm of x. |
Max |
Max (x, y) |
Selects the greater of X and Y. |
Min |
Min (x, y) |
Selects the lesser of X and Y. |
Modf |
MODF (x, out IP) |
Splits the value x into fractional and integer parts. |
Mul |
Mul (x, y) |
Performs matrix multiplication using x and Y. |
Noise |
Noise (x) |
Generates a random value using the perlin-noise algorithm. |
Normalize |
Normalize (x) |
Returns a normalized vector. |
Pow |
Pow (x, y) |
Returns XY. |
Radians |
Radians (x) |
Converts x from degrees to radians. |
Reflect |
Reflect (I, N) |
Returns a reflection vector. |
Refract |
Refract (i, N, R) |
Returns the refraction vector. |
Round |
Round (x) |
Rounds x to the nearest integer |
Rsqrt |
RSQRT (x) |
Returns 1/sqrt (x) |
Saturate |
Saturate (x) |
Clamps x to the range [0, 1] |
Sign |
Sign (x) |
Computes the sign of X. |
Sin |
Sin (x) |
Returns the sine of x |
Sincos |
Sincos (x, out S, out c) |
Returns the sine and cosine of x. |
Sinh |
Sinh (x) |
Returns the hyperbolic sine of x |
Smoothstep |
Smoothstep (min, max, x) |
Returns a smooth Hermite interpolation between 0 and 1. |
sqrt |
sqrt (x) |
Square root (per component) |
Step |
Step (A, X) |
Returns (x >= a)? 1:0 |
Tan |
Tan (x) |
Returns the tangent of X |
Tanh |
Tanh (x) |
Returns the hyperbolic tangent of X |
tex1d |
TEX1D (S, t) |
1D Texture Lookup. |
Tex1dbias |
Tex1dbias (S, t) |
1D texture lookup with bias. |
Tex1dgrad |
Tex1dgrad (S, T, DDX, Ddy) |
1D Texture lookup with a gradient. |
Tex1dlod |
Tex1dlod (S, t) |
1D Texture lookup with LOD. |
Tex1dproj |
Tex1dproj (S, t) |
1D texture lookup with projective divide. |
tex2d |
Tex2d (S, t) |
The texture lookup. |
Tex2dbias |
Tex2dbias (S, t) |
Texture lookup with bias. |
Tex2dgrad |
Tex2dgrad (S, T, DDX, Ddy) |
Texture lookup with a gradient. |
Tex2dlod |
Tex2dlod (S, t) |
Texture lookup with LOD. |
Tex2dproj |
Tex2dproj (S, t) |
Texture lookup with projective divide. |
Tex3d |
Tex3d (S, t) |
3D Texture Lookup. |
Tex3dbias |
Tex3dbias (S, t) |
3D texture lookup with bias. |
Tex3dgrad |
Tex3dgrad (S, T, DDX, Ddy) |
3D Texture lookup with a gradient. |
Tex3dlod |
Tex3dlod (S, t) |
3D Texture lookup with LOD. |
Tex3dproj |
Tex3dproj (S, t) |
3D texture lookup with projective divide. |
Texcube |
Texcube (S, t) |
Cube Texture Lookup. |
Texcubebias |
Texcubebias (S, t) |
Cube texture lookup with bias. |
Texcubegrad |
Texcubegrad (S, T, DDX, Ddy) |
Cube Texture lookup with a gradient. |
Texcubelod |
Tex3dlod (S, t) |
Cube Texture lookup with LOD. |
Texcubeproj |
Texcubeproj (S, t) |
Cube texture lookup with projective divide. |
Transpose |
Transpose (m) |
Returns the transpose of the Matrix M. |
Trunc |
Trunc (x) |
Truncates floating-point value (s) to integer value (s) |