ShaderGraphOp
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
enabled: boolean |
|
public |
info: * |
Private Members | ||
private |
_defines: *[] |
|
private |
_inPorts: *[] |
|
private |
_op: * |
|
private |
_outPorts: *[] |
Method Summary
Public Methods | ||
public |
|
|
public |
define(name: String, value: Any) add a define to a shader, e.g. |
|
public |
getDefine(name: *): * |
|
public |
getDefines(): * |
|
public |
hasDefine(name: String): Boolean return true if shader has define |
|
public |
isTypeDef(str: *): * |
|
public |
parseCode(_code: *): * |
|
public |
removeDefine(name: name) remove a define from a shader |
|
public |
toggleDefine(name: *, enabled: *) |
|
public |
|
|
public |
updatePorts(info: *) |
Public Constructors
public constructor() source
Public Members
public enabled: boolean source
public info: * source
Private Members
private _defines: *[] source
private _inPorts: *[] source
private _op: * source
private _outPorts: *[] source
Public Methods
public addPortWatcher() source
public define(name: String, value: Any) source
add a define to a shader, e.g. #define DO_THIS_THAT 1
Params:
Name | Type | Attribute | Description |
name | String | ||
value | Any | (can be empty) |
public hasDefine(name: String): Boolean source
return true if shader has define
Params:
Name | Type | Attribute | Description |
name | String |
Return:
Boolean |
public removeDefine(name: name) source
remove a define from a shader
Params:
Name | Type | Attribute | Description |
name | name |
public toggleDefine(name: *, enabled: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
enabled | * |
public updateGraph() source
public updatePorts(info: *) source
Params:
Name | Type | Attribute | Description |
info | * |