code: def texture3d(self, size, components, data=None, *, alignment=1, dtype='f1') -> 'Texture3D':
          '''
              Create a :py:class:`Texture3D` object.
  
              Args:
                  size (tuple): The width, height and depth of the texture.
                  components (int): The number of components 1, 2, 3 or 4.
                  data (bytes): Content of the texture.
  
              Keyword Args:
                  alignment (int): The byte alignment 1, 2, 4 or 8.
                  dtype (str): Data type.
  
              Returns:
                  :py:class:`Texture3D` object
          '''
  
          res = Texture3D.__new__(Texture3D)
          res.mglo, res._glo = self.mglo.texture3d(size, components, data, alignment, dtype)
          res.ctx = self
          res.extra = None
          return ref texture3d(self, size, components, data=None, *, alignment=1, dtype='f1') -> 'Texture3D':
          '''
              Create a :py:class:`Texture3D` object.
  
              Args:
                  size (tuple): The width, height and depth of the texture.
                  components (int): The number of components 1, 2, 3 or 4.
                  data (bytes): Content of the texture.
  
              Keyword Args:
                  alignment (int): The byte alignment 1, 2, 4 or 8.
                  dtype (str): Data type.
  
              Returns:
                  :py:class:`Texture3D` object
          '''
  
          res = Texture3D.__new__(Texture3D)
          res.mglo, res._glo = self.mglo.texture3d(size, components, data, alignment, dtype)
          res.ctx = self
          res.extra = None
          return res
docs: Create a :py:class:`Texture3D` object.
  
              Args:
                  size (tuple): The width, height and depth of the texture.
                  components (int): The number of components 1, 2, 3 or 4.
                  data (bytes): Content of the texture.
  
              Keyword Args:
                  alignment (int): The byte alignment 1, 2, 4 or 8.
                  dtype (str): Data type.
  
              Returns:
                  :py:class:`Texture3D` object