![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IProgram graph node interface.
This interface represents a generic GPU shader program used to render geometry.
See Graph::IMaterial for attaching a program to a given material. See Graph::IParameters for defining actual program parameters.
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Get the constant Graph::IProgram container storing an optional fallback program. This method returns a constant pointer to the node's Graph::IProgram container that stores an optional reference to another shader program node that is used instead, if linking of the shader objects failed.
Murl.Graph.IGenericNodeTarget.GraphIProgram GetFallbackProgramNodeTarget()
Get the program's number of stages.
Integer GetNumberOfStages()
Check if the program is valid. If linking of the program object fails, this method returns false.
Boolean IsValid(Boolean checkFallback)
checkFallback | If false, only the current program is considered. Otherwise, the method returns true if any of its fallback programs is valid. |
Get the shader linker log. If linking of the program object fails, this method returns the output provided by the OS/video API. Otherwise, an empty string is returned.
String GetLinkerLog()