ErrorHandledRuntimeShader
| Kind | class |
| Package | shaders |
| Full name | shaders.ErrorHandledRuntimeShader |
| Source | source/shaders/ErrorHandledShader.hx |
| Implements | IErrorHandler |
| Compiled when | #if !(SHADERS_ALLOWED && !flash && !neko) |
Known subclasses: PulseShader
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
shaderName | String | no | '' | #if !(SHADERS_ALLOWED && !flash && !neko) |
Public methods
onError
function onError(error:Dynamic):Void
Only compiled when #if !(SHADERS_ALLOWED && !flash && !neko).
| Parameter | Type | Default |
|---|---|---|
error | Dynamic | — |
new (constructor)
function new(?shaderName:String, ?fragmentSource:String, ?vertexSource:String)
Only compiled when #if !(SHADERS_ALLOWED && !flash && !neko).
| Parameter | Type | Default |
|---|---|---|
shaderName (optional) | String | — |
fragmentSource (optional) | String | — |
vertexSource (optional) | String | — |
setFloat
function setFloat(name:String, value:Float):Void
Only compiled when #if !(SHADERS_ALLOWED && !flash && !neko).
| Parameter | Type | Default |
|---|---|---|
name | String | — |
value | Float | — |
setBool
function setBool(name:String, value:Bool):Void
Only compiled when #if !(SHADERS_ALLOWED && !flash && !neko).
| Parameter | Type | Default |
|---|---|---|
name | String | — |
value | Bool | — |