Line | Code | Value | Export IDENTIFIER |
36 | m_inst[_T("abs")] = _T("abs(value a)|Absolute value (per component). "); | abs | |
| | abs(value a)|Absolute value (per component). | |
37 | m_inst[_T("acos")] = _T("acos(x)|Returns the arccosine of each component of x. Each component should be in the range [-1, 1]. "); | acos | |
| | acos(x)|Returns the arccosine of each component of x. Each component should be in the range [-1, 1]. | |
38 | m_inst[_T("all")] = _T("all(x)|Test if all components of x are nonzero. "); | all | |
| | all(x)|Test if all components of x are nonzero. | |
39 | m_inst[_T("any")] = _T("any(x)|Test is any component of x is nonzero. "); | any | |
| | any(x)|Test is any component of x is nonzero. | |
40 | m_inst[_T("asin")] = _T("asin(x)|Returns the arcsine of each component of x. Each component should be in the range [-pi/2, pi/2]. "); | asin | |
| | asin(x)|Returns the arcsine of each component of x. Each component should be in the range [-pi/2, pi/2]. | |
41 | m_inst[_T("atan")] = _T("atan(x)|Returns the arctangent of x. The return values are in the range [-pi/2, pi/2]. "); | atan | |
| | atan(x)|Returns the arctangent of x. The return values are in the range [-pi/2, pi/2]. | |
42 | m_inst[_T("atan2")] = _T("atan2(y, x)|Returns the arctangent of y/x. The signs of y and x are used to determine the quadrant of the return values in the range [-pi, pi]. atan2 is well-defined for every point other than the origin, even if x equals 0 and y does not equal 0. "); | atan2 | |
| | atan2(y, x)|Returns the arctangent of y/x. The signs of y and x are used to determine the quadrant of the return values in the range [-pi, pi]. atan2 is well-defined for every point other than the origin, even if x equals 0 and y does not equal 0. | |
43 | m_inst[_T("ceil")] = _T("ceil(x)|Returns the smallest integer which is greater than or equal to x. "); | ceil | |
| | ceil(x)|Returns the smallest integer which is greater than or equal to x. | |
44 | m_inst[_T("clamp")] = _T("clamp(x, min, max)|Clamps x to the range [min, max]. "); | clamp | |
| | clamp(x, min, max)|Clamps x to the range [min, max]. | |
45 | m_inst[_T("clip")] = _T("clip(x)|Discards the current pixel, if any component of x is less than zero. This can be used to simulate clip planes, if each component of x represents the distance from a plane. "); | clip | |
| | clip(x)|Discards the current pixel, if any component of x is less than zero. This can be used to simulate clip planes, if each component of x represents the distance from a plane. | |
46 | m_inst[_T("cos")] = _T("cos(x)|Returns the cosine of x. "); | cos | |
| | cos(x)|Returns the cosine of x. | |
47 | m_inst[_T("cosh")] = _T("cosh(x)|Returns the hyperbolic cosine of x. "); | cosh | |
| | cosh(x)|Returns the hyperbolic cosine of x. | |
48 | m_inst[_T("cross")] = _T("cross(a, b)|Returns the cross product of two 3-D vectors a and b. "); | cross | |
| | cross(a, b)|Returns the cross product of two 3-D vectors a and b. | |
49 | m_inst[_T("d3dcolortoubyte4")] = _T("D3DCOLORtoUBYTE4(x)|Swizzles and scales components of the 4-D vector x to compensate for the lack of UBYTE4 support in some hardware. "); | d3dcolortoubyte4 | |
| | D3DCOLORtoUBYTE4(x)|Swizzles and scales components of the 4-D vector x to compensate for the lack of UBYTE4 support in some hardware. | |
50 | m_inst[_T("ddx")] = _T("ddx(x)|Returns the partial derivative of x with respect to the screen-space x-coordinate. "); | ddx | |
| | ddx(x)|Returns the partial derivative of x with respect to the screen-space x-coordinate. | |
51 | m_inst[_T("ddy")] = _T("ddy(x)|Returns the partial derivative of x with respect to the screen-space y-coordinate. "); | ddy | |
| | ddy(x)|Returns the partial derivative of x with respect to the screen-space y-coordinate. | |
52 | m_inst[_T("degrees")] = _T("degrees(x)|Converts x from radians to degrees. "); | degrees | |
| | degrees(x)|Converts x from radians to degrees. | |
53 | m_inst[_T("determinant")] = _T("determinant(m)|Returns the determinant of the square matrix m. "); | determinant | |
| | determinant(m)|Returns the determinant of the square matrix m. | |
54 | m_inst[_T("distance")] = _T("distance(a, b)|Returns the distance between two points a and b. "); | distance | |
| | distance(a, b)|Returns the distance between two points a and b. | |
55 | m_inst[_T("dot")] = _T("dot(a, b)|Returns the dot product of two vectors a and b. "); | dot | |
| | dot(a, b)|Returns the dot product of two vectors a and b. | |
56 | m_inst[_T("exp")] = _T("exp(x)|Returns the base-e exponent ex. "); | exp | |
| | exp(x)|Returns the base-e exponent ex. | |
57 | m_inst[_T("exp2")] = _T("exp2(value a)|Base 2 Exp (per component). "); | exp2 | |
| | exp2(value a)|Base 2 Exp (per component). | |
58 | m_inst[_T("faceforward")] = _T("faceforward(n, i, ng)|Returns -n * sign(dot(i, ng)). "); | faceforward | |
| | faceforward(n, i, ng)|Returns -n * sign(dot(i, ng)). | |
59 | m_inst[_T("floor")] = _T("floor(x)|Returns the greatest integer which is less than or equal to x. "); | floor | |
| | floor(x)|Returns the greatest integer which is less than or equal to x. | |
60 | m_inst[_T("fmod")] = _T("fmod(a, b)|Returns the floating point remainder f of a / b such that a = i * b + f, where i is an integer, f has the same sign as x, and the absolute value of f is less than the absolute value of b. "); | fmod | |
| | fmod(a, b)|Returns the floating point remainder f of a / b such that a = i * b + f, where i is an integer, f has the same sign as x, and the absolute value of f is less than the absolute value of b. | |
61 | m_inst[_T("frac")] = _T("frac(x)|Returns the fractional part f of x, such that f is a value greater than or equal to 0, and less than 1. "); | frac | |
| | frac(x)|Returns the fractional part f of x, such that f is a value greater than or equal to 0, and less than 1. | |
62 | m_inst[_T("frc")] = _T("frc(value a)|Fractional part (per component). "); | frc | |
| | frc(value a)|Fractional part (per component). | |
63 | m_inst[_T("frexp")] = _T("frexp(x, out exp)|Returns the mantissa and exponent of x. frexp returns the mantissa, and the exponent is stored in the output parameter exp. If x is 0, the function returns 0 for both the mantissa and the exponent. "); | frexp | |
| | frexp(x, out exp)|Returns the mantissa and exponent of x. frexp returns the mantissa, and the exponent is stored in the output parameter exp. If x is 0, the function returns 0 for both the mantissa and the exponent. | |
64 | m_inst[_T("fwidth")] = _T("fwidth(x)|Returns abs(ddx(x))+abs(ddy(x)). "); | fwidth | |
| | fwidth(x)|Returns abs(ddx(x))+abs(ddy(x)). | |
65 | m_inst[_T("isfinite")] = _T("isfinite(x)|Returns true if x is finite, false otherwise. "); | isfinite | |
| | isfinite(x)|Returns true if x is finite, false otherwise. | |
66 | m_inst[_T("isinf")] = _T("isinf(x)|Returns true if x is +INF or -INF, false otherwise. "); | isinf | |
| | isinf(x)|Returns true if x is +INF or -INF, false otherwise. | |
67 | m_inst[_T("isnan")] = _T("isnan(x)|Returns true if x is NAN or QNAN, false otherwise. "); | isnan | |
| | isnan(x)|Returns true if x is NAN or QNAN, false otherwise. | |
68 | m_inst[_T("ldexp")] = _T("ldexp(x, exp)|Returns x * 2exp. "); | ldexp | |
| | ldexp(x, exp)|Returns x * 2exp. | |
69 | m_inst[_T("len")] = _T("len(value a)|Vector length. "); | len | |
| | len(value a)|Vector length. | |
70 | m_inst[_T("length")] = _T("length(v)|Returns the length of the vector v. "); | length | |
| | length(v)|Returns the length of the vector v. | |
71 | m_inst[_T("lerp")] = _T("lerp(a, b, s)|Returns a + s(b - a). This linearly interpolates between a and b, such that the return value is a when s is 0, and b when s is 1. "); | lerp | |
| | lerp(a, b, s)|Returns a + s(b - a). This linearly interpolates between a and b, such that the return value is a when s is 0, and b when s is 1. | |
72 | m_inst[_T("lit")] = _T("lit(ndotl, ndoth, m)|Returns a lighting vector (ambient, diffuse, specular, 1): ambient = 1; diffuse = (ndotl < 0) ? 0 : ndotl; specular = (ndotl < 0) || (ndoth < 0) ? 0 : (ndoth * m); "); | lit | |
| | lit(ndotl, ndoth, m)|Returns a lighting vector (ambient, diffuse, specular, 1): ambient = 1; diffuse = (ndotl < 0) ? 0 : ndotl; specular = (ndotl < 0) || (ndoth < 0) ? 0 : (ndoth * m); | |
73 | m_inst[_T("log")] = _T("log(x)|Returns the base-e logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. "); | log | |
| | log(x)|Returns the base-e logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. | |
74 | m_inst[_T("log10")] = _T("log10(x)|Returns the base-10 logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. "); | log10 | |
| | log10(x)|Returns the base-10 logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. | |
75 | m_inst[_T("log2")] = _T("log2(x)|Returns the base-2 logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. "); | log2 | |
| | log2(x)|Returns the base-2 logarithm of x. If x is negative, the function returns indefinite. If x is 0, the function returns +INF. | |
76 | m_inst[_T("max")] = _T("max(a, b)|Selects the greater of a and b. "); | max | |
| | max(a, b)|Selects the greater of a and b. | |
77 | m_inst[_T("min")] = _T("min(a, b)|Selects the lesser of a and b. "); | min | |
| | min(a, b)|Selects the lesser of a and b. | |
78 | m_inst[_T("modf")] = _T("modf(x, out ip)|Splits the value x into fractional and integer parts, each of which has the same sign and x. The signed fractional portion of x is returned. The integer portion is stored in the output parameter ip. "); | modf | |
| | modf(x, out ip)|Splits the value x into fractional and integer parts, each of which has the same sign and x. The signed fractional portion of x is returned. The integer portion is stored in the output parameter ip. | |
79 | m_inst[_T("mul")] = _T("mul(a, b)|Performs matrix multiplication between a and b. If a is a vector, it treated as a row vector. If b is a vector, it is treated as a column vector. The inner dimension acolumns and brows must be equal. The result has the dimension arows x bcolumns. "); | mul | |
| | mul(a, b)|Performs matrix multiplication between a and b. If a is a vector, it treated as a row vector. If b is a vector, it is treated as a column vector. The inner dimension acolumns and brows must be equal. The result has the dimension arows x bcolumns. | |
80 | m_inst[_T("noise")] = _T("noise(x)|Not yet implemented. "); | noise | |
| | noise(x)|Not yet implemented. | |
81 | m_inst[_T("normalize")] = _T("normalize(v)|Returns the normalized vector v / length(v). If the length of v is 0, the result is indefinite. "); | normalize | |
| | normalize(v)|Returns the normalized vector v / length(v). If the length of v is 0, the result is indefinite. | |
82 | m_inst[_T("pow")] = _T("pow(x, y)|Returns xy. "); | pow | |
| | pow(x, y)|Returns xy. | |
83 | m_inst[_T("radians")] = _T("radians(x)|Converts x from degrees to radians. "); | radians | |
| | radians(x)|Converts x from degrees to radians. | |
84 | m_inst[_T("reflect")] = _T("reflect(i, n)|Returns the reflection vector v, given the entering ray direction i, and the surface normal n. Such that v = i - 2 * dot(i, n) * n "); | reflect | |
| | reflect(i, n)|Returns the reflection vector v, given the entering ray direction i, and the surface normal n. Such that v = i - 2 * dot(i, n) * n | |
85 | m_inst[_T("refract")] = _T("refract(i, n, eta)|Returns the refraction vector v, given the entering ray direction i, the surface normal n, and the relative index of refraction eta. If the angle between i and n is too great for a given eta, refract returns (0,0,0). "); | refract | |
| | refract(i, n, eta)|Returns the refraction vector v, given the entering ray direction i, the surface normal n, and the relative index of refraction eta. If the angle between i and n is too great for a given eta, refract returns (0,0,0). | |
86 | m_inst[_T("round")] = _T("round(x)|Rounds x to the nearest integer. "); | round | |
| | round(x)|Rounds x to the nearest integer. | |
87 | m_inst[_T("rsqrt")] = _T("rsqrt(x)|Returns 1 / sqrt(x). "); | rsqrt | |
| | rsqrt(x)|Returns 1 / sqrt(x). | |
88 | m_inst[_T("saturate")] = _T("saturate(x)|Clamps x to the range [0, 1]. "); | saturate | |
| | saturate(x)|Clamps x to the range [0, 1]. | |
89 | m_inst[_T("sign")] = _T("sign(x)|Computes the sign of x. Returns -1 if x is less than 0, 0 if x equals 0, and 1 if x is greater than zero. "); | sign | |
| | sign(x)|Computes the sign of x. Returns -1 if x is less than 0, 0 if x equals 0, and 1 if x is greater than zero. | |
90 | m_inst[_T("sin")] = _T("sin(x)|Returns the sine of x. "); | sin | |
| | sin(x)|Returns the sine of x. | |
91 | m_inst[_T("sincos")] = _T("sincos(x, out s, out c)|Returns the sine and cosine of x. sin(x) is stored in the output parameter s. cos(x) is stored in the output parameter c. "); | sincos | |
| | sincos(x, out s, out c)|Returns the sine and cosine of x. sin(x) is stored in the output parameter s. cos(x) is stored in the output parameter c. | |
92 | m_inst[_T("sinh")] = _T("sinh(x)|Returns the hyperbolic sine of x. "); | sinh | |
| | sinh(x)|Returns the hyperbolic sine of x. | |
93 | m_inst[_T("smoothstep")] = _T("smoothstep(min, max, x)|Returns 0 if x < min. Returns 1 if x > max. Returns a smooth Hermite interpolation between 0 and 1, if x is in the range [min, max]. "); | smoothstep | |
| | smoothstep(min, max, x)|Returns 0 if x < min. Returns 1 if x > max. Returns a smooth Hermite interpolation between 0 and 1, if x is in the range [min, max]. | |
94 | m_inst[_T("sqrt")] = _T("sqrt(value a)|Square root (per component). "); | sqrt | |
| | sqrt(value a)|Square root (per component). | |
95 | m_inst[_T("step")] = _T("step(a, x)|Returns (x >= a) ? 1 : 0. "); | step | |
| | step(a, x)|Returns (x >= a) ? 1 : 0. | |
96 | m_inst[_T("tan")] = _T("tan(x)|Returns the tangent of x. "); | tan | |
| | tan(x)|Returns the tangent of x. | |
97 | m_inst[_T("tanh")] = _T("tanh(x)|Returns the hyperbolic tangent of x. "); | tanh | |
| | tanh(x)|Returns the hyperbolic tangent of x. | |
98 | m_inst[_T("tex1d")] = _T("tex1D(s, t)|1-D texture lookup. s is a sampler or a sampler1D object. t is a scalar. "); | tex1d | |
| | tex1D(s, t)|1-D texture lookup. s is a sampler or a sampler1D object. t is a scalar. | |
99 | m_inst[_T("tex1d(")] = _T("tex1D(s, t, ddx, ddy)|1-D texture lookup, with derivatives. s is a sampler or sampler1D object. t, ddx, and ddy are scalars. "); | tex1d( | |
| | tex1D(s, t, ddx, ddy)|1-D texture lookup, with derivatives. s is a sampler or sampler1D object. t, ddx, and ddy are scalars. | |
100 | m_inst[_T("tex1dproj")] = _T("tex1Dproj(s, t)|1-D projective texture lookup. s is a sampler or sampler1D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. "); | tex1dproj | |
| | tex1Dproj(s, t)|1-D projective texture lookup. s is a sampler or sampler1D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. | |
101 | m_inst[_T("tex1dbias")] = _T("tex1Dbias(s, t)|1-D biased texture lookup. s is a sampler or sampler1D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. "); | tex1dbias | |
| | tex1Dbias(s, t)|1-D biased texture lookup. s is a sampler or sampler1D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. | |
102 | m_inst[_T("tex2d")] = _T("tex2D(s, t)|2-D texture lookup. s is a sampler or a sampler2D object. t is a 2-D texture coordinate. "); | tex2d | |
| | tex2D(s, t)|2-D texture lookup. s is a sampler or a sampler2D object. t is a 2-D texture coordinate. | |
103 | m_inst[_T("tex2d(")] = _T("tex2D(s, t, ddx, ddy)|2-D texture lookup, with derivatives. s is a sampler or sampler2D object. t, ddx, and ddy are 2-D vectors. "); | tex2d( | |
| | tex2D(s, t, ddx, ddy)|2-D texture lookup, with derivatives. s is a sampler or sampler2D object. t, ddx, and ddy are 2-D vectors. | |
104 | m_inst[_T("tex2dproj")] = _T("tex2Dproj(s, t)|2-D projective texture lookup. s is a sampler or sampler2D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. "); | tex2dproj | |
| | tex2Dproj(s, t)|2-D projective texture lookup. s is a sampler or sampler2D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. | |
105 | m_inst[_T("tex2dbias")] = _T("tex2Dbias(s, t)|2-D biased texture lookup. s is a sampler or sampler2D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. "); | tex2dbias | |
| | tex2Dbias(s, t)|2-D biased texture lookup. s is a sampler or sampler2D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. | |
106 | m_inst[_T("tex3d")] = _T("tex3D(s, t)|3-D volume texture lookup. s is a sampler or a sampler3D object. t is a 3-D texture coordinate. "); | tex3d | |
| | tex3D(s, t)|3-D volume texture lookup. s is a sampler or a sampler3D object. t is a 3-D texture coordinate. | |
107 | m_inst[_T("tex3d(")] = _T("tex3D(s, t, ddx, ddy)|3-D volume texture lookup, with derivatives. s is a sampler or sampler3D object. t, ddx, and ddy are 3-D vectors. "); | tex3d( | |
| | tex3D(s, t, ddx, ddy)|3-D volume texture lookup, with derivatives. s is a sampler or sampler3D object. t, ddx, and ddy are 3-D vectors. | |
108 | m_inst[_T("tex3dproj")] = _T("tex3Dproj(s, t)|3-D projective volume texture lookup. s is a sampler or sampler3D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. "); | tex3dproj | |
| | tex3Dproj(s, t)|3-D projective volume texture lookup. s is a sampler or sampler3D object. t is a 4-D vector. t is divided by its last component before the lookup takes place. | |
109 | m_inst[_T("tex3dbias")] = _T("tex3Dbias(s, t)|3-D biased texture lookup. s is a sampler or sampler3D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. "); | tex3dbias | |
| | tex3Dbias(s, t)|3-D biased texture lookup. s is a sampler or sampler3D object. t is a 4-D vector. The mip level is biased by t.w before the lookup takes place. | |
110 | m_inst[_T("texcube")] = _T("texCUBE(s, t)|3-D cube texture lookup. s is a sampler or a samplerCUBE object. t is a 3-D texture coordinate. "); | texcube | |
| | texCUBE(s, t)|3-D cube texture lookup. s is a sampler or a samplerCUBE object. t is a 3-D texture coordinate. | |
111 | m_inst[_T("texcube(")] = _T("texCUBE(s, t, ddx, ddy)|3-D cube texture lookup, with derivatives. s is a sampler or samplerCUBE object. t, ddx, and ddy are 3-D vectors. "); | texcube( | |
| | texCUBE(s, t, ddx, ddy)|3-D cube texture lookup, with derivatives. s is a sampler or samplerCUBE object. t, ddx, and ddy are 3-D vectors. | |
112 | m_inst[_T("texcubeproj")] = _T("texCUBEproj(s, t)|3-D projective cube texture lookup. s is a sampler or samplerCUBE object. t is a 4-D vector. t is divided by its last component before the lookup takes place. "); | texcubeproj | |
| | texCUBEproj(s, t)|3-D projective cube texture lookup. s is a sampler or samplerCUBE object. t is a 4-D vector. t is divided by its last component before the lookup takes place. | |
113 | m_inst[_T("texcubebias")] = _T("texCUBEbias(s, t)|3-D biased cube texture lookup. s is a sampler or samplerCUBE object. t is a 4-dimensional vector. The mip level is biased by t.w before the lookup takes place. "); | texcubebias | |
| | texCUBEbias(s, t)|3-D biased cube texture lookup. s is a sampler or samplerCUBE object. t is a 4-dimensional vector. The mip level is biased by t.w before the lookup takes place. | |
114 | m_inst[_T("transpose")] = _T("transpose(m)|Returns the transpose of the matrix m. If the source is dimension mrows x mcolumns, the result is dimension mcolumns x mrows. "); | transpose | |
| | transpose(m)|Returns the transpose of the matrix m. If the source is dimension mrows x mcolumns, the result is dimension mcolumns x mrows. | |
| | | |