Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / GLShader Class / GetAttribLocation Method / GetAttribLocation(UInt32,String) Method
The shader program ID
The variable name

In This Topic
    GetAttribLocation(UInt32,String) Method
    In This Topic
    Gets the location of an attribute shader variable.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetAttribLocation( _
       ByVal shaderProgram As UInteger, _
       ByVal name As String _
    ) As Integer
    public static int GetAttribLocation( 
       uint shaderProgram,
       string name
    )

    Parameters

    shaderProgram
    The shader program ID
    name
    The variable name

    Return Value

    True if successful, false otherwise.
    See Also