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

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

    Parameters

    shaderProgram
    The shader program ID
    uniformName
    The uniform variable name

    Return Value

    True if successful, false otherwise.
    See Also