Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.09 KB

texture_array.rst

File metadata and controls

41 lines (32 loc) · 1.09 KB

TextureArray

.. py:module:: moderngl
.. py:currentmodule:: moderngl

.. autoclass:: moderngl.TextureArray

Create

.. automethod:: Context.texture_array(size, components, data=None, alignment=1, dtype='f1') -> TextureArray
    :noindex:

Methods

.. automethod:: TextureArray.read(alignment=1) -> bytes
.. automethod:: TextureArray.read_into(buffer, alignment=1, write_offset=0)
.. automethod:: TextureArray.write(data, viewport=None, alignment=1)
.. automethod:: TextureArray.build_mipmaps(base=0, max_level=1000)
.. automethod:: TextureArray.use(location=0)

Attributes

.. autoattribute:: TextureArray.repeat_x
.. autoattribute:: TextureArray.repeat_y
.. autoattribute:: TextureArray.filter
.. autoattribute:: TextureArray.swizzle
.. autoattribute:: TextureArray.anisotropy
.. autoattribute:: TextureArray.width
.. autoattribute:: TextureArray.height
.. autoattribute:: TextureArray.layers
.. autoattribute:: TextureArray.size
.. autoattribute:: TextureArray.dtype
.. autoattribute:: TextureArray.components
.. autoattribute:: TextureArray.glo

.. toctree::
    :maxdepth: 2