Manages GPU-resident, dynamically-editable data storage for model geometry and attributes.

Constructors

Properties

dataTextures: BatchDataTextures

The data textures that implement GPU-side model storage for this GPUMemoryBatch.

index: number

Index of this GPUMemoryBatch within the GPUMemoryManager.sortedBatches array.

Accessors

Methods

  • Sets attributes for e mesh to apply across all Views.

    Sets RenderContext.viewFlags[...].needsRender to true.

    Parameters

    • meshIndex: number
    • params: { tileIndex?: number }
      • OptionaltileIndex?: number

        Optional tileIndex of the GPUTile containing the mesh. This can be dynamically updated, as mesh can move between tiles.

    Returns void

  • Sets attributes for a mesh within a specific View.

    Sets RenderContext.viewFlags[viewIndex].needsRender to true.

    Parameters

    • meshIndex: number
    • viewIndex: number
    • params: { clippable?: boolean; color?: Vec3; opacity?: number; pickable?: boolean }

    Returns void