Packageaway3d.materials.utils
Classpublic class ShaderRegisterElement

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)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.
Init Parameters
Method detail
toString()method
public function toString():String

Converts the register or the components AGAL string representation.

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.materials.utils.ShaderRegisterElement'

Code examples

Comments