Subroutine#

class moderngl.Subroutine#

This class represents a program subroutine.

Subroutine.index: int#

The index of the subroutine.

Type

int

Subroutine.name: str#

The name of the subroutine.

Type

str

Subroutine.extra: Any#

Attribute for storing user defined objects