(batchTexture, context, bytes)
| 434 | }; |
| 435 | |
| 436 | function createTexture(batchTexture, context, bytes) { |
| 437 | const dimensions = batchTexture._textureDimensions; |
| 438 | return new Texture({ |
| 439 | context: context, |
| 440 | pixelFormat: PixelFormat.RGBA, |
| 441 | pixelDatatype: PixelDatatype.UNSIGNED_BYTE, |
| 442 | source: { |
| 443 | width: dimensions.x, |
| 444 | height: dimensions.y, |
| 445 | arrayBufferView: bytes, |
| 446 | }, |
| 447 | flipY: false, |
| 448 | sampler: Sampler.NEAREST, |
| 449 | }); |
| 450 | } |
| 451 | |
| 452 | function createPickTexture(batchTexture, context) { |
| 453 | const featuresLength = batchTexture._featuresLength; |
no outgoing calls
no test coverage detected
searching dependent graphs…