This module provides a WebGL2 rendering backend for the xeokit Viewer.
It is responsible for managing GPU-resident rendering data, issuing draw calls,
and keeping GPU state synchronized with scene and view changes.
The MemoryConfigs interface allows you to configure GPU memory usage for the
WebGLRenderer. This defines a budget that the renderer adheres to when allocating
textures, indices, and vertex buffers.
The easiest way to create memory configurations is with createMemoryConfigs:
The internal namespace exposes internal diagnostics and debugging facilities
used by the WebGLRenderer implementation itself. These APIs provide deep visibility
into GPU-resident resources, shader programs, command submission, and internal
rendering state while the renderer is running.
This namespace is not part of the public API and is intended solely for
xeokit SDK development and debugging. It is not supported for application use
and may change or be removed without notice.
xeokit WebGL Renderer
WebGL2-based rendering backend for xeokit Viewers
Overview
This module provides a WebGL2 rendering backend for the xeokit Viewer. It is responsible for managing GPU-resident rendering data, issuing draw calls, and keeping GPU state synchronized with scene and view changes.
Key features include:
Installation
Usage
Attach a WebGLRenderer to a Viewer to enable WebGL2-based storage and rendering of scene data:
Reading Memory Usage
You can monitor GPU memory usage via the MemoryUsage interface, accessible from WebGLRenderer.getMemoryUsage:
Configuring GPU Memory Limits
The MemoryConfigs interface allows you to configure GPU memory usage for the WebGLRenderer. This defines a budget that the renderer adheres to when allocating textures, indices, and vertex buffers.
The easiest way to create memory configurations is with createMemoryConfigs:
A more manual approach is to directly implement MemoryConfigs:
Internal Diagnostics API
The internal namespace exposes internal diagnostics and debugging facilities used by the WebGLRenderer implementation itself. These APIs provide deep visibility into GPU-resident resources, shader programs, command submission, and internal rendering state while the renderer is running.
This namespace is not part of the public API and is intended solely for xeokit SDK development and debugging. It is not supported for application use and may change or be removed without notice.