Cg.cgGetFirstLeafParameter Method
Used to get the first leaf parameter from the specified program.
[Visual Basic]
Public Shared Function cgGetFirstLeafParameter( _
ByVal
program As
IntPtr, _
ByVal
nameSpace As
Integer _
) As
IntPtr
[C#]
public static
IntPtr cgGetFirstLeafParameter(
IntPtr program,
int nameSpace);
Parameters
-
program
- Handle to the program to query.
-
nameSpace
- Namespace in which to query for the params (usually CG_PROGRAM).
Return Value
Handle to the first Cg parameter in the specified program.
Remarks
Leaf params read into params that are structs as well, eliminating the need to explictly determine if the param is a struct or other type.
See Also
Cg Class | Tao.Cg Namespace