Constructor
Methods
createPass(techniqueIndexopt, parametersopt) → {Pass}
Add a pass to a technique
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
techniqueIndex |
number |
<optional> |
0 | Targeted technique's index (default: 0) |
parameters |
Array.<Array> |
<optional> |
An array of parameters |
A Pass instance.
createTechnique() → {number}
Create a new technique
The technique index.
number
getActiveTechnique() → {number}
Get active technique's index
A positive integer
number
getPass(techniqueIndex, passIndex) → (nullable) {Pass}
Get a pass
Parameters:
Name | Type | Description |
---|---|---|
techniqueIndex |
number | Targeted technique's index |
passIndex |
number | Pass's index |
A Pass instance or null if the technique or the pass don't exist
getPassCount(techniqueIndex) → {number}
Get pass count
Parameters:
Name | Type | Default | Description |
---|---|---|---|
techniqueIndex |
number | 0 | Targeted technique's index |
A signed integer
number
setActiveTechnique(techniqueIndex)
Set technique to use
Parameters:
Name | Type | Description |
---|---|---|
techniqueIndex |
number | Targeted technique's index |