Handle to an allocated portion in PrimitiveMeshIndexTexture.

A portion represents a contiguous range of primitives belonging to a single mesh and assigned to a specific render pass.

Portions are opaque handles owned by the texture. Their offset is updated during uploadChanges, when the internal buffer is rebuilt and repacked.

interface PrimitiveMeshIndexTexturePortionHandle {
    id: number;
    meshIndex: number;
    meshVisible: boolean;
    objectVisible: boolean;
    offset: number;
    renderPass: number;
    size: number;
}

Properties

id: number

Unique portion identifier.

meshIndex: number

Index of the mesh that owns this portion.

meshVisible: boolean

Mesh-level visibility flag.

objectVisible: boolean

Object-level visibility flag.

offset: number

Offset of the portion within the packed primitive buffer.

This is updated during uploadChanges.

renderPass: number

Render pass this portion belongs to.

size: number

Number of primitives in this portion.