@lakuna/ugl
    Preparing search index...

    Class Buffer<T>Abstract

    An array of binary data.

    Type Parameters

    • T extends ArrayBufferView

    Hierarchy (View Summary)

    Index

    Properties

    Accessors

    Methods

    Properties

    context: Context

    The rendering context.

    Accessors

    Methods

    • Set the size of this buffer, clearing its data.

      Parameters

      • data: number

        The data to store in this buffer or the size to set this buffer's data store to in bytes.

      • Optionalusage: BufferUsage

        The intended usage of the buffer.

      Returns void

    • Replace all of or update a subset of the data in this buffer.

      Parameters

      • data: VertexBuffer | T

        The data to store in this buffer or the size to set this buffer's data store to in bytes.

      • Optionalusage: BufferUsage

        The intended usage of the buffer.

      • OptionalsrcOffset: number

        The index of the element to start reading the supplied data at.

      • Optionallength: number

        The length of the supplied data to read.

      • OptionaldstOffset: number

        The offset in bytes to start replacing data at. If this value is set, a subset of the data in the buffer is updated rather than replacing all of the data in the buffer and the usage pattern of the buffer is not updated.

      Returns void