Buffer
======

.. py:currentmodule:: moderngl

.. autoclass:: moderngl.Buffer

Create
------

.. automethod:: Context.buffer
    :noindex:

Methods
-------

.. automethod:: Buffer.assign
.. automethod:: Buffer.bind
.. automethod:: Buffer.write
.. automethod:: Buffer.write_chunks
.. automethod:: Buffer.read
.. automethod:: Buffer.read_into
.. automethod:: Buffer.read_chunks
.. automethod:: Buffer.read_chunks_into
.. automethod:: Buffer.clear
.. automethod:: Buffer.bind_to_uniform_block
.. automethod:: Buffer.bind_to_storage_buffer
.. automethod:: Buffer.orphan
.. automethod:: Buffer.release

Attributes
----------

.. autoattribute:: Buffer.size
.. autoattribute:: Buffer.dynamic
.. autoattribute:: Buffer.glo
.. autoattribute:: Buffer.mglo
.. autoattribute:: Buffer.extra
.. autoattribute:: Buffer.ctx

.. toctree::
    :maxdepth: 2
