createPointCloud#pointsBuffer¶
Summary¶
createPointCloud#pointsBuffer exposes the storage buffer of packed point records. Use it to bind the same point data in a GPU operation. Direct RGBA data, when present, lives in colorsBuffer.
Syntax¶
PointCloud.pointsBuffer: GPUBuffer | null
PointCloud.colorsBuffer: GPUBuffer | null
const points = cloud.pointsBuffer;
Returns¶
GPUBuffer | null - Current GPU storage or null before it is available. Point records contain [x, y, z, value] as four f32 values, and separate color records contain [r, g, b, a].
Notes¶
Re-read a managed handle after uploads that can resize or replace storage. Use the source setters to replace buffers so the point count, ownership and renderer bindings stay in sync. A point cloud can render using scalar color with no separate color buffer.