()
| 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 |
no test coverage detected