Package | flash.display |
Class | public final class ShaderPrecision |
Inheritance | ShaderPrecision Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
precisionHint
property. Each constant
represents one of the precision modes for executing shader operations.
The precision mode selection affects the following shader operations. These operations are faster on an Intel processor with the SSE instruction set:
-
sin(x)
-
cos(x)
-
tan(x)
-
asin(x)
-
acos(x)
-
atan(x)
-
atan(x, y)
-
exp(x)
-
exp2(x)
-
log(x)
-
log2(x)
-
pow(x, y)
-
reciprocal(x)
-
sqrt(x)
See also
Constant | Defined By | ||
---|---|---|---|
FAST : String = "fast" [static]
Represents fast precision mode. | ShaderPrecision | ||
FULL : String = "full" [static]
Represents full precision mode. | ShaderPrecision |
FAST | Constant |
public static const FAST:String = "fast"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Represents fast precision mode.
Fast precision mode is designed for maximum performance but does not work consistently on different platforms and individual CPU configurations. In many cases, this level of precision is sufficient to create graphic effects without visible artifacts.
It is usually faster to use fast precision mode than to use lookup tables.
See also
FULL | Constant |
public static const FULL:String = "full"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Represents full precision mode.
In full precision mode, the shader computes all math operations to the full width of the IEEE 32-bit floating standard. This mode provides consistent behavior on all platforms. In this mode, some math operations such as trigonometric and exponential functions can be slow.
See also
Fri Mar 19 2010, 02:45 AM -07:00