Home Reference Source
import {ShaderGraphProgram} from './libs/cgl/shadergraph/cgl_shadergraphprogram.js'
public class | source

ShaderGraphProgram

Extends:

cables-shared-client~Events → ShaderGraphProgram

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

finalSrc: string

public

uniforms: *[]

Private Members
private
private
private

_headFuncSrc: string

private

_headUniSrc: string

private

_op: *

private
private
private

_port: *

private

_type: *

Method Summary

Public Methods
public
public

callFunc(op: *, convertTo: *): *

public
public
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:

NameTypeAttributeDescription
op *

public callFunc(op: *, convertTo: *): * source

Params:

NameTypeAttributeDescription
op *
convertTo *

Return:

*

public compile() source

public countObjectInputPorts(op: *): * source

Params:

NameTypeAttributeDescription
op *

Return:

*

public replaceId(op: *, txt: *): * source

Params:

NameTypeAttributeDescription
op *
txt *

Return:

*

public setOpShaderId(op: *) source

Params:

NameTypeAttributeDescription
op *

public uniformAsStaticVar(uni: *): * source

Params:

NameTypeAttributeDescription
uni *

Return:

*

Private Methods

private _getPortParamStr(p: *, convertTo: *): * source

Params:

NameTypeAttributeDescription
p *
convertTo *

Return:

*