File: uniform_block.rst

package info (click to toggle)
python-moderngl 5.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,700 kB
  • sloc: python: 15,758; cpp: 14,665; makefile: 14
file content (36 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
UniformBlock
============

.. py:class:: UniformBlock

    Available in :py:meth:`Program.__getitem__`

.. py:attribute:: UniformBlock.binding
    :type: int

    The binding of the uniform block. Same as the value.

.. py:attribute:: UniformBlock.value
    :type: int

    The value of the uniform block. Same as the binding.

.. py:attribute:: UniformBlock.name
    :type: str

    The name of the uniform block.

.. py:attribute:: UniformBlock.index
    :type: int

    The index of the uniform block.

.. py:attribute:: UniformBlock.size
    :type: int

    The size of the uniform block.

.. py:attribute:: UniformBlock.extra
    :type: Any

    User defined data.