import {ShaderGraphProgram} from './libs/cgl/shadergraph/cgl_shadergraphprogram.js'
ShaderGraphProgram
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
finalSrc: string |
|
public |
uniforms: *[] |
Private Members | ||
private |
_callFuncStack: *[] |
|
private |
|
|
private |
_headFuncSrc: string |
|
private |
_headUniSrc: string |
|
private |
_op: * |
|
private |
|
|
private |
|
|
private |
_port: * |
|
private |
_type: * |
Method Summary
Public Methods | ||
public |
addOpShaderFuncCode(op: *) |
|
public |
callFunc(op: *, convertTo: *): * |
|
public |
compile() |
|
public |
countObjectInputPorts(op: *): * |
|
public |
replaceId(op: *, txt: *): * |
|
public |
setOpShaderId(op: *) |
|
public |
uniformAsStaticVar(uni: *): * |
Private Methods | ||
private |
_getPortParamStr(p: *, convertTo: *): * |
Public Constructors
public constructor() source
Public Members
public finalSrc: string source
public uniforms: *[] source
Private Members
private _callFuncStack: *[] source
private _functionIdInHead: {} source
private _headFuncSrc: string source
private _headUniSrc: string source
private _op: * source
private _opIdsFuncCallSrc: {} source
private _opIdsHeadFuncSrc: {} source
private _port: * source
private _type: * source
Public Methods
public addOpShaderFuncCode(op: *) source
Params:
Name | Type | Attribute | Description |
op | * |
public callFunc(op: *, convertTo: *): * source
Params:
Name | Type | Attribute | Description |
op | * | ||
convertTo | * |
Return:
* |
public compile() source
public setOpShaderId(op: *) source
Params:
Name | Type | Attribute | Description |
op | * |
Private Methods
private _getPortParamStr(p: *, convertTo: *): * source
Params:
Name | Type | Attribute | Description |
p | * | ||
convertTo | * |
Return:
* |