Packageaway3d.materials.compilation
Classpublic class ShaderRegisterElement
InheritanceShaderRegisterElement Inheritance Object

A single register element (an entire register or a single register's component) used by the RegisterPool.



Public Properties
 PropertyDefined By
  _component : int
ShaderRegisterElement
  index : int
[read-only] The register's index.
ShaderRegisterElement
  regName : String
[read-only] The register's name.
ShaderRegisterElement
Public Methods
 MethodDefined By
  
ShaderRegisterElement(regName:String, index:int, component:int = -1)
Creates a new ShaderRegisterElement object.
ShaderRegisterElement
  
toString():String
Converts the register or the components AGAL string representation.
ShaderRegisterElement
Property Detail
_componentproperty
public var _component:int

indexproperty 
index:int  [read-only]

The register's index.


Implementation
    public function get index():int
regNameproperty 
regName:String  [read-only]

The register's name.


Implementation
    public function get regName():String
Constructor Detail
ShaderRegisterElement()Constructor
public function ShaderRegisterElement(regName:String, index:int, component:int = -1)

Creates a new ShaderRegisterElement object.

Parameters
regName:String — The name of the register.
 
index:int — The index of the register.
 
component:int (default = -1) — The register's component, if not the entire register is represented.
Method Detail
toString()method
public function toString():String

Converts the register or the components AGAL string representation.

Returns
String