Module Import alias identifier ImportFrom alias identifier ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num If CompareIsNot NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str orelse If CompareGt BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIsNot Call NameLoad NameLoad body Assign AttributeStore Call NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMult NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num Num If CompareGt NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore IfExp CompareIn Str AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr Str Str Return TupleLoad Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpFloorDiv NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str orelse If Call NameLoad NameLoad NameLoad body If CompareLt NameLoad Num body AugAssignAdd NameStore AttributeLoad NameLoad attr If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore TupleLoad NameLoad BinOpAdd NameLoad Num Num orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad Num AttributeLoad NameLoad attr Num orelse Raise Call NameLoad Str If CompareNotEq NameLoad Num body Raise Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If CompareLt AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpSub NameLoad NameLoad orelse If CompareGt AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Index Num Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return If Call NameLoad NameLoad NameLoad body If CompareLt NameLoad Num body AugAssignAdd NameStore AttributeLoad NameLoad attr If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore TupleLoad NameLoad BinOpAdd NameLoad Num Num orelse If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad Num AttributeLoad NameLoad attr Num orelse Raise Call NameLoad Str If CompareNotEq NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore IfExp CompareGt AttributeLoad NameLoad attr Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num If CompareIn NameLoad ListLoad Num Num Num body If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Num If BoolOpAnd AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad TupleLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad For NameStore SubscriptLoad NameLoad Slice Num body If CompareNotIn Call AttributeLoad NameLoad attr Str Str Str NameLoad body Break Return SubscriptLoad Call NameLoad ListLoad NameLoad Index Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str orelse If NameLoad body If CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareNotIn AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A numpy np os path op traceback extract_stack format_list N/A weakref globject GLObject util logger ext.six string_types Buffer N/A GLObject N/A N/A  Generic GPU buffer.

    A generic buffer is an interface used to upload data to a GPU array buffer
    (ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER). It keeps track of
    buffer size but does not have any CPU storage. You can consider it as
    write-only.

    The `set_data` is a deferred operation: you can call it even if an OpenGL
    context is not available. The `update` function is responsible to upload
    pending data to GPU memory and requires an active GL context.

    The Buffer class only deals with data in terms of bytes; it is not
    aware of data type or element size.

    Parameters
    ----------
    data : ndarray | None
        Buffer data.
    nbytes : int | None
        Buffer byte size.
     __init__ N/A N/A self data nbytes N/A None None N/A N/A N/A N/A GLObject __init__ self N/A N/A self _views N/A N/A N/A self _valid True N/A N/A self _nbytes 0 N/A N/A data None N/A N/A N/A nbytes None N/A N/A N/A ValueError Cannot specify both data and nbytes. N/A N/A N/A self set_data data copy False N/A N/A N/A nbytes None N/A N/A N/A N/A self resize_bytes nbytes N/A nbytes N/A N/A self N/A N/A N/A  Buffer size in bytes  N/A N/A self _nbytes N/A property set_subdata N/A N/A self data offset copy N/A 0 False N/A N/A  Set a sub-region of the buffer (deferred operation).

        Parameters
        ----------

        data : ndarray
            Data to be uploaded
        offset: int
            Offset in buffer where to start copying data (in bytes)
        copy: bool
            Since the operation is deferred, data may change before
            data is actually uploaded to GPU memory.
            Asking explicitly for a copy will prevent this behavior.
         N/A data N/A N/A np array data copy copy N/A nbytes N/A data nbytes N/A N/A offset 0 N/A N/A N/A ValueError Offset must be positive N/A N/A N/A N/A offset nbytes N/A self _nbytes N/A N/A N/A ValueError Data does not fit into buffer N/A N/A N/A nbytes N/A self _nbytes N/A offset 0 N/A N/A N/A N/A N/A self _glir command SIZE N/A self _id nbytes N/A N/A N/A N/A self _glir command DATA N/A self _id offset data N/A set_data N/A N/A self data copy N/A False N/A N/A  Set data in the buffer (deferred operation).

        This completely resets the size and contents of the buffer.

        Parameters
        ----------
        data : ndarray
            Data to be uploaded
        copy: bool
            Since the operation is deferred, data may change before
            data is actually uploaded to GPU memory.
            Asking explicitly for a copy will prevent this behavior.
         N/A data N/A N/A np array data copy copy N/A nbytes N/A data nbytes N/A N/A nbytes N/A self _nbytes N/A N/A N/A N/A self resize_bytes nbytes N/A N/A N/A N/A N/A self _glir command SIZE N/A self _id nbytes N/A nbytes N/A N/A N/A N/A N/A self _glir command DATA N/A self _id 0 data N/A resize_bytes N/A N/A self size N/A N/A N/A  Resize this buffer (deferred operation). 
        
        Parameters
        ----------
        size : int
            New buffer size in bytes.
         N/A N/A self _nbytes size N/A N/A N/A N/A self _glir command SIZE N/A self _id size N/A view N/A self _views N/A N/A N/A N/A view None N/A N/A N/A N/A view _valid False N/A N/A self _views N/A N/A N/A DataBuffer N/A Buffer N/A N/A  GPU data buffer that is aware of data type and elements size

    Parameters
    ----------
    data : ndarray | None
        Buffer data.
     __init__ N/A N/A self data N/A None N/A N/A N/A self _size 0 N/A N/A self _dtype None N/A N/A self _stride 0 N/A N/A self _itemsize 0 N/A N/A self _last_dim None N/A N/A N/A Buffer __init__ self data N/A _prepare_data N/A N/A self data N/A N/A N/A N/A N/A isinstance data N/A np ndarray N/A N/A N/A TypeError DataBuffer data must be numpy array. N/A data N/A set_subdata N/A N/A self data offset copy N/A 0 False kwargs N/A N/A  Set a sub-region of the buffer (deferred operation).

        Parameters
        ----------

        data : ndarray
            Data to be uploaded
        offset: int
            Offset in buffer where to start copying data (in bytes)
        copy: bool
            Since the operation is deferred, data may change before
            data is actually uploaded to GPU memory.
            Asking explicitly for a copy will prevent this behavior.
        **kwargs : dict
            Additional keyword arguments.
         N/A data N/A N/A self _prepare_data data kwargs N/A offset N/A offset N/A self itemsize N/A N/A N/A Buffer set_subdata self data data offset offset copy copy N/A set_data N/A N/A self data copy N/A False kwargs N/A N/A  Set data (deferred operation)

        Parameters
        ----------
        data : ndarray
            Data to be uploaded
        copy: bool
            Since the operation is deferred, data may change before
            data is actually uploaded to GPU memory.
            Asking explicitly for a copy will prevent this behavior.
        **kwargs : dict
            Additional arguments.
         N/A data N/A N/A self _prepare_data data kwargs N/A N/A self _dtype N/A data dtype N/A N/A self _stride N/A N/A data strides N/A -1 N/A N/A self _itemsize N/A N/A self _dtype itemsize N/A N/A N/A Buffer set_data self data data copy copy N/A dtype N/A N/A self N/A N/A N/A  Buffer dtype  N/A N/A self _dtype N/A property offset N/A N/A self N/A N/A N/A  Buffer offset (in bytes) relative to base  N/A 0 N/A property stride N/A N/A self N/A N/A N/A  Stride of data in memory  N/A N/A self _stride N/A property size N/A N/A self N/A N/A N/A  Number of elements in the buffer  N/A N/A self _size N/A property itemsize N/A N/A self N/A N/A N/A  The total number of bytes required to store the array data  N/A N/A self _itemsize N/A property glsl_type N/A N/A self N/A N/A N/A  GLSL declaration strings required for a variable to hold this data.
         N/A N/A N/A self dtype None N/A N/A None N/A dtshape N/A N/A N/A self dtype N/A 0 shape N/A n N/A dtshape N/A dtshape N/A 0 1 N/A N/A n 1 N/A N/A dtype N/A vec%d n N/A N/A dtype N/A N/A f N/A N/A N/A N/A self dtype N/A 0 base kind float int N/A N/A attribute dtype N/A property resize_bytes N/A N/A self size N/A N/A N/A  Resize the buffer (in-place, deferred operation)

        Parameters
        ----------
        size : integer
            New buffer size in bytes

        Notes
        -----
        This clears any pending operations.
         N/A N/A N/A Buffer resize_bytes self size N/A N/A self _size N/A size N/A self itemsize N/A __getitem__ N/A N/A self key N/A N/A N/A  Create a view on this buffer.  N/A view N/A DataBufferView self key N/A N/A N/A N/A self _views append N/A N/A weakref ref view N/A view N/A __setitem__ N/A N/A self key data N/A N/A N/A  Set data (deferred operation)  N/A N/A isinstance key string_types N/A N/A N/A ValueError Cannot set non-contiguous data on buffer N/A N/A N/A isinstance key int N/A N/A N/A key 0 N/A N/A key N/A self size N/A N/A N/A key 0 N/A key N/A self size N/A N/A N/A IndexError Buffer assignment index out of range N/A N/A start stop step N/A key N/A key 1 1 N/A N/A N/A isinstance key slice N/A N/A N/A start stop step N/A N/A key indices N/A self size N/A N/A stop start N/A N/A N/A start stop N/A stop start N/A N/A N/A key Ellipsis N/A N/A N/A start stop step N/A 0 N/A self size 1 N/A N/A N/A TypeError Buffer indices must be integers or strings N/A N/A step 1 N/A N/A N/A ValueError Cannot set non-contiguous data on buffer N/A N/A N/A isinstance data N/A np ndarray N/A N/A data N/A N/A np array data dtype N/A self dtype copy False N/A N/A N/A data size N/A stop start N/A N/A data N/A N/A np resize data N/A stop start N/A N/A N/A N/A data size N/A stop start N/A N/A N/A ValueError Data too big to fit GPU data. N/A offset start N/A N/A N/A self set_subdata data data offset offset copy True N/A __repr__ N/A N/A self N/A N/A N/A N/A <%s size=%s last_dim=%s> N/A N/A N/A self __class__ __name__ N/A self size N/A self _last_dim N/A N/A DataBufferView N/A DataBuffer N/A N/A  View on a sub-region of a DataBuffer.

    Parameters
    ----------
    base : DataBuffer
        The buffer accessed by this view.
    key : str, int, slice, or Ellpsis
        The index into the base buffer that defines a sub-region of the buffer
        to view. String arguments select a single field from multi-field 
        dtypes, and other allowed types select a subset of rows. 
        
    Notes
    -----
    
    It is generally not necessary to instantiate this class manually; use 
    ``base_buffer[key]`` instead.
     __init__ N/A N/A self base key N/A N/A N/A N/A self _base base N/A N/A self _key key N/A N/A self _stride N/A base stride N/A N/A isinstance key string_types N/A N/A N/A self _dtype N/A N/A base dtype N/A key N/A N/A self _offset N/A N/A N/A N/A base dtype fields N/A key N/A 1 N/A N/A self _nbytes N/A N/A base size N/A N/A self _dtype itemsize N/A N/A self _size N/A base size N/A N/A self _itemsize N/A N/A self _dtype itemsize N/A N/A N/A isinstance key int N/A N/A N/A key 0 N/A N/A key N/A base size N/A N/A N/A key 0 N/A key N/A base size N/A N/A N/A IndexError Buffer assignment index out of range N/A N/A start stop step N/A key N/A key 1 1 N/A N/A N/A isinstance key slice N/A N/A N/A start stop step N/A N/A key indices N/A base size N/A N/A stop start N/A N/A N/A start stop N/A stop start N/A N/A N/A key Ellipsis N/A N/A N/A start stop step N/A 0 N/A base size 1 N/A N/A N/A TypeError Buffer indices must be integers or strings N/A N/A step 1 N/A N/A N/A ValueError Cannot access non-contiguous data N/A N/A self _itemsize N/A base itemsize N/A N/A self _offset N/A start N/A self itemsize N/A N/A self _size N/A stop start N/A N/A self _dtype N/A base dtype N/A N/A self _nbytes N/A N/A self size N/A self itemsize N/A glir N/A N/A self N/A N/A N/A N/A N/A self _base glir N/A property id N/A N/A self N/A N/A N/A N/A N/A self _base id N/A property _last_dim N/A N/A self N/A N/A N/A N/A N/A self _base _last_dim N/A property set_subdata N/A N/A self data offset copy N/A 0 False kwargs N/A N/A N/A RuntimeError Cannot set data on buffer view. N/A set_data N/A N/A self data copy N/A False kwargs N/A N/A N/A RuntimeError Cannot set data on buffer view. N/A offset N/A N/A self N/A N/A N/A  Buffer offset (in bytes) relative to base  N/A N/A self _offset N/A property base N/A N/A self N/A N/A N/A Buffer base if this buffer is a view on another buffer.  N/A N/A self _base N/A property resize_bytes N/A N/A self size N/A N/A N/A N/A RuntimeError Cannot resize buffer view. N/A __getitem__ N/A N/A self key N/A N/A N/A N/A RuntimeError Can only access data from a base buffer N/A __setitem__ N/A N/A self key data N/A N/A N/A N/A RuntimeError Cannot set data on Buffer view N/A __repr__ N/A N/A self N/A N/A N/A N/A <DataBufferView on %r at offset=%d size=%d> N/A N/A self base N/A self offset N/A self size N/A N/A VertexBuffer N/A DataBuffer N/A N/A  Buffer for vertex attribute data

    Parameters
    ----------
    data : ndarray
        Buffer data (optional)
     N/A _GLIR_TYPE VertexBuffer _prepare_data N/A N/A self data convert N/A False N/A N/A N/A isinstance data list N/A N/A data N/A N/A np array data dtype N/A np float32 N/A N/A N/A isinstance data N/A np ndarray N/A N/A N/A ValueError N/A Data must be a ndarray (got %s) N/A type data N/A N/A N/A data dtype isbuiltin N/A N/A N/A convert True N/A N/A data N/A N/A data astype N/A np float32 N/A N/A N/A data dtype N/A N/A np float64 N/A np int64 N/A N/A N/A TypeError N/A data must be 32-bit not %s N/A data dtype N/A c N/A N/A N/A data ndim 1 N/A N/A data shape N/A -1 1 N/A N/A c N/A 2 3 4 N/A N/A N/A N/A N/A data flags N/A C_CONTIGUOUS N/A N/A N/A N/A logger warning N/A Copying discontiguous data for struct dtype:
%s N/A _last_stack_str N/A data N/A N/A data copy N/A N/A c 1 N/A N/A N/A self _last_dim N/A c N/A self _last_dim N/A N/A N/A ValueError N/A Last dimension should be %s not %s N/A N/A self _last_dim c N/A data N/A N/A data view dtype N/A N/A f0 N/A N/A data dtype base c N/A N/A self _last_dim c N/A data N/A N/A _last_stack_str N/A N/A N/A N/A N/A Print stack trace from call that didn't originate from here N/A stack N/A extract_stack N/A s N/A stack N/A -1 N/A N/A N/A N/A N/A op join vispy gloo buffer.py __file__ N/A N/A N/A N/A N/A format_list N/A s N/A 0 N/A IndexBuffer N/A DataBuffer N/A N/A  Buffer for index data

    Parameters
    ----------

    data : ndarray | None
        Buffer data.
     N/A _GLIR_TYPE IndexBuffer __init__ N/A N/A self data N/A None N/A N/A N/A N/A DataBuffer __init__ self data N/A N/A self _last_dim 1 N/A _prepare_data N/A N/A self data convert N/A False N/A N/A N/A isinstance data list N/A N/A data N/A N/A np array data dtype N/A np uint32 N/A N/A N/A isinstance data N/A np ndarray N/A N/A N/A ValueError N/A Data must be a ndarray (got %s) N/A type data N/A N/A N/A N/A data dtype isbuiltin N/A N/A N/A TypeError Element buffer dtype cannot be structured N/A N/A convert N/A N/A N/A N/A data dtype N/A np uint32 N/A N/A data N/A N/A data astype N/A np uint32 N/A N/A N/A N/A data dtype N/A N/A np uint32 N/A np uint16 N/A np uint8 N/A N/A N/A TypeError N/A Invalid dtype for IndexBuffer: %r N/A data dtype N/A data N/A N/A