Tao.Cg SDK Documentation

Cg.cgGetParameterResourceIndex Method 

Retrieves the index of the specifed parameter according to its type and variability.

[Visual Basic]
Public Shared Function cgGetParameterResourceIndex( _
   ByVal param As IntPtr _
) As Integer
[C#]
public static int cgGetParameterResourceIndex(
   IntPtr param
);

Parameters

param
Handle of the param to query.

Return Value

Index of the specified parameter according to its type and variability.

Remarks

For example, if the resource for a given parameter is CG_TEXCOORD7, cgGetParameterResourceIndex() returns 7. Also, for uniform params, it equates to the constant index that will be used in the resulting program.

See Also

Cg Class | Tao.Cg Namespace