Packageflash.display
Classpublic final class ShaderPrecision
InheritanceShaderPrecision Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 1.5

This class defines the constants that represent the possible values for the Shader class's 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:

See also

flash.display.Shader.precisionHint


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined by
  FAST : String = "fast"
[static] Represents fast precision mode.
ShaderPrecision
  FULL : String = "full"
[static] Represents full precision mode.
ShaderPrecision
Constant detail
FASTconstant
public static const FAST:String = "fast"

Language version: ActionScript 3.0
Runtime version: 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

FULLconstant 
public static const FULL:String = "full"

Language version: ActionScript 3.0
Runtime version: 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