abs;Returns the absolute value of a scalar or vector;a
acos;Returns the arccosine of a in the range [0,pi], expecting a to be in the range [-1,+1].;a
all;Returns TRUE if a boolean scalar is TRUE or all components of a boolean vector are TRUE.;a
any;Returns TRUE if a boolean scalar is TRUE or any component of a boolean vector is TRUE.;a
asin;Returns the arcsine of a in the range [-pi/2,+pi/2], expecting a to be in the range [-1,+1].;a
atan;Returns the arctangent of x in the range of -pi/2 to pi/2 radians.;a
atan2;Calculates the arctangent of y/x.|atan2 is well defined for every point other than the origin,|even if x equals 0 and y does not equal 0.;y;x
ceil;Returns smallest integer not less than a scalar or each vector component;a
clamp;Returns smallest integer not less than a scalar or each vector component|Parameters:|x - Vector or scalar to clamp|a - Vector or scalar for bottom of clamp range|b - Vector or scalar for top of clamp range||Returns x clamped to the range [a,b] as follows:|1) Returns a if x is less than a|2) Returns b if x is greater than b|3) Returns x otherwise.;x;a;b
cos;Returns cosine of scalars and vectors.;a
cosh;Returns hyperbolic cosine of scalars and vectors;a
cross;Returns the cross product of two three-component vectors;a;b
degrees;Converts values of scalars and vectors from radians to degrees;a
determinant;Returns the scalar determinant of a square matrix;A
dot;Returns the scalar dot product of two vectors;a;b
exp;Expotential function e^x.;x
exp2;Expotential function 2^x.;x
floor;Largest integer not greater than x.;x
fmod;Remainder of x/y, with the same sign as x.;x;y
frac;Fractional part of x.;x
frexp;Splits x into a normalized fraction in the interval [0.5, 1), which is returned,|and a power of 2, which is stored in exp.|If x is zero, both parts of the result are zero.;x;out exp
isfinite;Returns TRUE if x is finite.;x
isinf;Returns TRUE if x is infinite.;x
isnan;Returns TRUE if x is NaN (not a number);x
ldexp;x * 2^n;x;n
lerp;Linear interpolation: (1 - f) * a + b * f where a and b|are matching vector or scalar types. Parameter f can be|either a scalar or a vector of the same type as a and b.;a;b;f
lit;Computes lighting coefficients for ambient, diffuse, and specular light contributions.|Returns a 4-vector as follows:|- The x component of the result vector contains the ambient coefficient, which is always 1.0.|- The y component contains the diffuse coefficient which is zero if (n dot l) < 0; otherwise (n dot l).|- The z component contains the specular coefficient which is zero if either (n dot l) < 0 or (n dot h) < 0, (n dot h)^m otherwise.|- The w component is 1.0.|There is no vectorized version of this function.
log;Natural logarithm ln(x). x must be greater than zero.;x
log2;Base 2 logarithm of x. x must be greater than zero.;x
log10;Base 10 logarithm of x. x must be greater than zero.;x
length;Return scalar Euclidean length of a vector;v
max;Returns the maximum of two scalars or each respective component of two vectors;a;b
min;Returns the minimum of two scalars or each respective component of two vectors;a;b
modf;Splits x into integral and fractional parts, each with the same sign as x.|Stores the integral part in ip and returns the fractional part.;x;out ip
mul;Matrix product of matrix M and matrix N.|If M has size AxB and N has size BxC, returns a matrix of size AxC.;M;N
mul;Product of a matrix M and column vector v;M;v
mul;Product of row vector v and matrix M;v;M
noise;Either a 1-, 2-, or 3-dimensional noise function depending on the type of its argument.|The returned value is between zero and one and is always the same for a given input value.
pow;x^y;x;y
radians;Converts values of scalars and vectors from degrees to radians;a
round;Closest integer to x;x
rsqrt;Reciprocal square root of x. x must be greater than zero.;x
reflect;Returns the reflectiton vector given an incidence vector i and a normal vector n.|The resulting vector is the identical number of components as the two input vectors.|The normal vector n should be normalized.|If n is normalized, the output vector will have the same length as the input incidence vector i.;i;n
refract;Computes a refraction vector.|Parameters:|i - Incidence vector|n - Normal vector|eta - Ratio of indices of refraction at the surface interface.;i;n;eta
saturate;Returns smallest integer not less than a scalar or each vector component;x
sin;Returns sine of scalars and vectors;a
sincos;s is set to the sine of x, and c is set to the cosine of x.|If sin(x) and cos(x) are both needed, this function is more efficient|than calculating each individually.;x;out s;out c
sinh;Returns hyperbolic sine of scalars and vectors;a
smoothstep;For values of x between min and max, returns a smoothly|varying value that ranges from 0 at x = min to 1 at x = max.|x is clamped to the range [min, max] and then the interpolation formula is evaluated:|-2 * ((x - min) / (max - min)) ^ 3 + 3 * ((x - min) / (max - min)) ^ 2;min;max;x
step;0 if x < a|1 if x >= a;a;x
sqrt;Square root of x. x must be greater than zero.
tan;Returns tangent of scalars and vectors;a
tanh;Returns hyperbolic tangent of scalars and vectors;a
transpose;Returns transpose matrix of a matrix;A
distance;Euclidean distance between points pt1 and pt2;pt1;pt2
faceforward;N if dot(Ng, I) < 0, otherwise -N;N;I;Ng
normalize;Returns a vector of length 1 that points in the same direction as vector v.;v
tex1D;1D nonprojective;sampler1D tex;float s
tex1D;1D nonprojective with derivatives;sampler1D tex;float s;float dsdx;float dsdy
tex1D;1D nonprojective depth compare;sampler1D tex;float2 sz
tex1D;1D nonprojective depth compare with derivatives;sampler1D tex;float2 sz;float dsdx;float dsdy
tex1Dproj;1D projective;sampler1D tex;float2 sq
tex1Dproj;1D projective depth compare;sampler1D tex;float3 szq
tex2D;2D nonprojective;sampler2D tex;float2 s
tex2D;2D nonprojective with derivatives;sampler2D tex;float2 s;float2 dsdx;float2 dsdy
tex2D;2D nonprojective depth compare;sampler2D tex;float3 sz
tex2D;2D nonprojective depth compare with derivatives;sampler2D tex;float3 sz;float2 dsdx;float2 dsdy
tex2Dproj;2D projective;sampler2D tex;float3 sq
tex2Dproj;2D projective depth compare;sampler2D tex;float4 szq
texRECT;2D RECT nonprojective;sampler2DRECT tex;float2 s
texRECT;2D RECT nonprojective with derivatives;sampler2DRECT tex;float2 s;float2 dsdx;float2 dsdy
texRECT;2D RECT nonprojective depth compare;sampler2DRECT tex;float3 sz
texRECT;2D RECT nonprojective depth compare with derivatives;sampler2DRECT tex;float3 sz;float2 dsdx;float2 dsdy
texRECTproj;2D RECT projective;sampler2DRECT tex;float3 sq
texRECTproj;2D RECT projective depth compare;sampler2DRECT tex;float4 szq
tex3D;3D nonprojective;sampler3D tex;float3 s
tex3D;3D nonprojective with derivatives;sampler3D tex;float3 s;float3 dsdx;float3 dsdy
tex3Dproj;3D projective depth compare;sampler3D tex;float4 szq
texCUBE;Cubemap nonprojective;samplerCUBE tex;float3 s
texCUBE;Cubemap nonprojective with derivatives;samplerCUBE tex;float3 s;float3 dsdx;float3 dsdy
texCUBEproj;Cubemap projective;samplerCUBE tex;float4 szq
ddx;Approximate partial derivative of a with respect to screen-space x coordinate.;a
ddy;Approximate partial derivative of a with respect to screen-space y coordinate.;a
debug;If the compiler's DEBUG option is specified, calling|this function causes the value x to be copied to the|COLOR output of the program, and execution of the|program is terminated.|If the compiler's DEBUG option is not specified, this|function does nothing.;float4 x
