GPUGraph.RuntimeGraph.IndexOfParam_Tex2D C# (CSharp) Method

IndexOfParam_Tex2D() public method

Returns -1 if the param doesn't exist.
public IndexOfParam_Tex2D ( string name ) : int
name string
return int
        public int IndexOfParam_Tex2D(string name)
        {
            for (int i = 0; i < Tex2DParams.Count; ++i)
                if (Tex2DParams[i].Key == name)
                    return i;
            return -1;
        }