Skip to main content

Module resources

Module resources 

Source
Expand description

GPU resource container (pipelines, buffers, bind groups).

Modules§

colormap_data
Built-in colormap LUT data.
mesh_store
Slotted GPU mesh storage with free-list removal. Slotted mesh storage with free-list removal.

Structs§

AttributeRef
Reference to a named scalar attribute on a mesh.
CameraUniform
Per-frame camera uniform: view-projection and eye position.
ClipVolumeUniform
Clip volume uniform — 128 bytes, bound at group 0 binding 6.
ColormapId
GPU resources for the 3D viewport.
ComputeFilterResult
Output from a single GPU compute filter dispatch.
GpuMesh
GPU buffers and bind group for a single mesh.
GpuTexture
A GPU texture with its view, sampler, and bind group for shader binding.
LightsUniform
GPU-side lights uniform (binding 3 of group 0). Supports up to 8 light sources.
MeshData
Raw mesh data for upload to the GPU. Framework-agnostic representation.
OverlayVertex
Per-vertex data for overlay rendering: position only (no normal/color in vertex).
PointCloudGpuData
Per-frame GPU data for one point cloud item, created in prepare().
PolylineGpuData
Per-frame GPU data for one polyline item, created in prepare().
SingleLightUniform
GPU-side per-light uniform (one entry in the LightsUniform array).
Vertex
Per-vertex data: position, normal, base color, UV coordinates, tangent.
ViewportGpuResources
All GPU resources for the 3D viewport.
VolumeGpuData
Per-frame GPU data for one volume item, created in prepare().
VolumeId
Identifies a 3D volume texture uploaded to the GPU.

Enums§

AttributeData
Scalar data for a mesh attribute.
AttributeKind
Scalar attribute interpolation domain.
BuiltinColormap
Built-in colormap presets.

Functions§

lerp_attributes
Linearly interpolate between two attribute buffers element-wise.

Type Aliases§

LightUniform
Alias kept for backward compatibility — existing app code imports LightUniform.