voxolith

ChunkResponse

Messages a chunk worker sends the pool.

type ChunkResponse = 
  | {
  kind: "ready";
}
  | {
  kind: "init-error";
  message: string;
}
  | {
  cells: Uint8Array;
  count: number;
  id: number;
  kind: "filled";
  ms: number;
  origins: Int32Array;
}
  | {
  id: number;
  kind: "error";
  message: string;
};

Defined in: engine/src/worker/chunks.ts:31

Union Members

Type Literal

{
  kind: "ready";
}

make returned: the worker serves fills.


Type Literal

{
  kind: "init-error";
  message: string;
}

make threw: the worker cannot serve anything.


Type Literal

{
  cells: Uint8Array;
  count: number;
  id: number;
  kind: "filled";
  ms: number;
  origins: Int32Array;
}

The bricks a fill wrote (FilledBricks), buffers transferred.


Type Literal

{
  id: number;
  kind: "error";
  message: string;
}

The fill threw on this request.

On this page