Retrieves the index of the specifed parameter according to its type and variability.
Index of the specified parameter according to its type and variability.
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.