Package | flare.flsl |
Class | public class FLSLShader |
Inheritance | FLSLShader ![]() ![]() ![]() |
See also
Property | Defined By | ||
---|---|---|---|
![]() | agalVersion : int = 1 [static] | FLSL | |
currentPass : int [read-only]
Returns the current pass index being proccessed. | FLSLShader | ||
![]() | name : String
The name of the flsl object. | FLSL | |
outputFragment : uint
Pointer to the output fragment register. | FLSLShader | ||
outputVertex : uint
Pointer to the output vertex register. | FLSLShader | ||
![]() | params : Dictionary
Contains a collection of flsl public declarations. | FLSLScope | |
![]() | semantic : String
The semantic which the object is associated. | FLSL |
Method | Defined By | ||
---|---|---|---|
FLSLShader(name:String = null) | FLSLShader | ||
![]() | bind(byteCode:ByteArray):void
Bind the compiled flsl code to be executed by the scope. | FLSLScope | |
Builds and compile the shader. | FLSLShader | ||
![]() | call(ns:String, params:Array = null):uint
Call to a function stored in the scope. | FLSLScope | |
getNumPasses(technique:String = null):int
Returns the number of passes for a specified technique. | FLSLShader | ||
![]() | getTechniqueNames():Array
Retirms all technique names available in the scope. | FLSLScope | |
init(pass:int):void
Initializes and sets the specified pass to be processed. | FLSLShader | ||
process(filter:FLSLFilter):void
Filters are small pieces of code that can be executed consecutively to affect the current state of the shader. | FLSLShader |
currentPass | property |
currentPass:int
[read-only] Returns the current pass index being proccessed.
public function get currentPass():int
outputFragment | property |
public var outputFragment:uint
Pointer to the output fragment register.
outputVertex | property |
public var outputVertex:uint
Pointer to the output vertex register.
FLSLShader | () | Constructor |
public function FLSLShader(name:String = null)
name:String (default = null )
|
build | () | method |
public function build():FLSLProgram
Builds and compile the shader.
ReturnsFLSLProgram — A program which contains the resulted byte code and defines the structure of the compiled shader.
|
getNumPasses | () | method |
public function getNumPasses(technique:String = null):int
Returns the number of passes for a specified technique.
Parameters
technique:String (default = null ) — The name of the technique.
|
int — The number of passes.
|
init | () | method |
public function init(pass:int):void
Initializes and sets the specified pass to be processed. This also resets the current outputVertex and outputFragment variables.
Parameters
pass:int — The number of the pass to be processed.
|
process | () | method |
public function process(filter:FLSLFilter):void
Filters are small pieces of code that can be executed consecutively to affect the current state of the shader. Filters may return a value into outputVertex or outputFragment or affect an existing register in a shared namespace.
Parameters
filter:FLSLFilter — The filter to process.
|