GLProgram.uniform

Gets a uniform by name.

class GLProgram
package
uniform
@safe nothrow
(
string name
)

Return Value

Type: GLUniform

A GLUniform with this name. This GLUniform might be created on demand if the name hasn't been found. So it might be a "fake" uniform. This feature has been added to avoid errors when the driver decides that a uniform is not used and removes it.

See Also

GLUniform.

Meta