Packageaway3d.materials.utils
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 : String
[read-only] The register's component, if not the entire register is represented.
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:String = null)
Creates a new ShaderRegisterElement object.
ShaderRegisterElement
  
toString():String
Converts the register or the components AGAL string representation.
ShaderRegisterElement
Property Detail
componentproperty
component:String  [read-only]

The register's component, if not the entire register is represented.


Implementation
    public function get component():String
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:String = null)

Creates a new ShaderRegisterElement object.

Parameters
regName:String — The name of the register.
 
index:int — The index of the register.
 
component:String (default = null) — 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