MCPcopy Index your code
hub / github.com/sparkjsdev/spark / getArray

Method getArray

src/RgbaArray.ts:200–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 }
199
200 async getArray(): Promise<Uint8Array> {
201 if (this.readback) {
202 return await this.read();
203 }
204 if (this.array) {
205 return this.array;
206 }
207 throw new Error("No array");
208 }
209
210 private static emptySource: THREE.DataArrayTexture | null = null;
211

Callers 2

createLodSplatsMethod · 0.80
createLodSplatsMethod · 0.80

Calls 1

readMethod · 0.95

Tested by

no test coverage detected