Packageflare.materials.flsl
Classpublic dynamic class FLSLShader
InheritanceFLSLShader Inheritance flare.materials.flsl.FLSLNamespace



Public Properties
 PropertyDefined By
  programs : Vector.<FLSLProgram>
FLSLShader
Public Methods
 MethodDefined By
  
FLSLShader(byteCode:ByteArray = null, techniqueName:String = null)
Creates a new FLSL shader namespace.
FLSLShader
  
build(techniqueName:String):Vector.<FLSLProgram>
FLSLShader
Property Detail
programsproperty
public var programs:Vector.<FLSLProgram>

Constructor Detail
FLSLShader()Constructor
public function FLSLShader(byteCode:ByteArray = null, techniqueName:String = null)

Creates a new FLSL shader namespace. This class is necesary to compile flsl shaders. This object represents a gobal top level scope/namespace where you can bind another namespaces, functions and variables.

Parameters
byteCode:ByteArray (default = null) — If you pass a FLSL byte code, the shader will be atomatically compiled and the scope will be disposed inmediatelly. This is the same as calling bind, build and dispose. Using this parameter you will not be able to bind additional namespaces.
 
techniqueName:String (default = null) — An optional tecchnique name to compile. If this parameter is null, the first technique is used.
Method Detail
build()method
public function build(techniqueName:String):Vector.<FLSLProgram>

Parameters

techniqueName:String

Returns
Vector.<FLSLProgram>